[MPlayer-dev-eng] [PATCH] Autodetect # of available CPUs

Loren Merritt lorenm at u.washington.edu
Sun Jul 1 18:58:43 CEST 2007


On Sun, 1 Jul 2007, Zuxy Meng wrote:
> 2007/7/1, Reimar Doeffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
>
>> and this kind
>> of code also means lots of ugly OS-specific code
>
> Well I hate this too but I don't know a more elegant way to do this.
> If the only threading library mplayer will ever use is pthread, then
> maybe pthread_num_processors_np can do the job, but is that function
> always available when HAVE_PTHREAD?

No. _np = non-portable, and afaik that function only exists in windows 
pthread.

--Loren Merritt



More information about the MPlayer-dev-eng mailing list