[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [OT] Win32 condition variable implementation

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-09-11 21:43:52 CEST

Tobias Ringstrom wrote:

> Branko Čibej wrote:
>
>> Yes, but it doesn't implement the semantics of POSIX condition variables
>> -- it doesn't release and reacquire the mutex associated with the
>> condition whie waiting for the signal. The problem with these simple
>> inplementations on Windows has always been that
>>
>> release(mutex)
>> wait(event)
>> acquire(mutex)
>>
>> has a race condition because the release and wait can't be performed
>> atomically.
>
>
> Have you considered using SignalObjectAndWait?

Yes, I have. I'd prefer to do a generic implementation first, and
perhaps an optimized one for NT/2k/XP later.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 11 21:44:47 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.