[MPlayer-dev-eng] [PATCH] use pthreads for cache on cygwin
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Nov 15 20:17:14 CET 2008
On Fri, Nov 14, 2008 at 08:27:55PM +0100, Reimar Döffinger wrote:
> the "native" thread API for cygwin is pthreads, the threading API we
> currently use for MinGW is not available for it (my fault for not
> checking), and the one we used before to the best of my knowledge would
> have memleaks on cygwin, too.
> Thus I propose attached patch which uses pthread_create etc.
> It depends on the PTHREAD_CACHE define so it will be easy to activate on
> other systems, too (I tested it on Linux, someone on -users tested it
> for cygwin), but for now will only be used on Cygwin.
> Any objections to it?
Sorry if you consider it hasty, but after another cygwin user
complaining I decided to apply it, thinking it can not really make
anything worse.
If you have complaints about it I'll try to fix it soonish (e.g. I think
there probably should be some configure logic for all this, but since it
is currently such an OS-specific mess I am unsure how to do it best).
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list