This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Re: starvation in pthread_once?
- From: Alexander Terekhov <TEREKHOV at de dot ibm dot com>
- To: Gottlob Frege <gottlobfrege at gmail dot com>
- Cc: Pthreads-Win32 list <pthreads-win32 at sources dot redhat dot com>
- Date: Tue, 8 Mar 2005 18:14:22 +0100
- Subject: Re: starvation in pthread_once?
> It would just seem like overkill if all my mutexes needed a
> mutex to init themselves.
With CAS (InterlockedCompareExchange), you can use lockless
DCCI (not DCSI) on slow path to initialize event handle/ptr.
http://www.google.de/groups?selm=421F44B2.F931491D%40web.de
regards,
alexander.