[FFmpeg-devel] [PATCH] Runtime detection for the number of processors/cores
Wed May 21 15:13:43 CEST 2008
> Hello FFmpeg Team
> The attached patch is an attempt to allow runtime detection for the
> number of online processors/cores instead of having to specify the
> number of threads. The idea is to type:
> ffmpeg -threads 0 ....
> to use as many threads as processors/cores are online.
Hmm is this _SC_NPROCESSORS_ONLN widely available ?
Or is this yet another linuxism ?
... ok it seems to be also available on some BSD at least.
I can easily add it to Haiku though, and I wouldn't even bother adding
BeOS-specific code just for that, unless it goes to the *thread.c
And that likely won't work on win32 or OS2... so it might actually go
More information about the ffmpeg-devel