This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]