Re: [FFmpeg-devel] [PATCH] w32pthreads: add pthread_once emulation

2015-10-10 Thread Hendrik Leppkes
On Wed, Oct 7, 2015 at 6:29 PM, Hendrik Leppkes wrote: > On Wed, Oct 7, 2015 at 6:23 PM, Matt Oliver wrote: >> On 6 October 2015 at 21:36, Hendrik Leppkes wrote: >> >>> The emulation uses native InitOnce* APIs on Windows Vista+,

Re: [FFmpeg-devel] [PATCH] w32pthreads: add pthread_once emulation

2015-10-07 Thread Hendrik Leppkes
On Wed, Oct 7, 2015 at 7:06 PM, Matt Oliver wrote: > On 8 October 2015 at 03:29, Hendrik Leppkes wrote: > >> On Wed, Oct 7, 2015 at 6:23 PM, Matt Oliver wrote: >> > On 6 October 2015 at 21:36, Hendrik Leppkes

Re: [FFmpeg-devel] [PATCH] w32pthreads: add pthread_once emulation

2015-10-07 Thread Matt Oliver
On 6 October 2015 at 21:36, Hendrik Leppkes wrote: > The emulation uses native InitOnce* APIs on Windows Vista+, and a > lock-free/allocation-free approach using atomics and spinning for Windows > XP. > --- > > This is in preparation to use pthread_once for global static

Re: [FFmpeg-devel] [PATCH] w32pthreads: add pthread_once emulation

2015-10-07 Thread Matt Oliver
On 8 October 2015 at 03:29, Hendrik Leppkes wrote: > On Wed, Oct 7, 2015 at 6:23 PM, Matt Oliver wrote: > > On 6 October 2015 at 21:36, Hendrik Leppkes wrote: > > > >> The emulation uses native InitOnce* APIs on Windows Vista+,

[FFmpeg-devel] [PATCH] w32pthreads: add pthread_once emulation

2015-10-06 Thread Hendrik Leppkes
The emulation uses native InitOnce* APIs on Windows Vista+, and a lock-free/allocation-free approach using atomics and spinning for Windows XP. --- This is in preparation to use pthread_once for global static init functions, and eventually removing the global lock in avcodec_open2