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

Zuxy Meng zuxy.meng at gmail.com
Mon Jul 2 09:57:16 CEST 2007


Hi,

2007/7/2, Loren Merritt <lorenm at u.washington.edu>:
> 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.

Do u know any portable way in pthread to do similar work?

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



More information about the MPlayer-dev-eng mailing list