Re: Events

From: Brian Macy (bmacy@siterock.com)
Date: Thu Jun 22 2000 - 19:17:42 EST


oliver wrote:
>
> Er, it's very easy to implement both automatic and manual win32 events on
> top of pthread condition variables. An event can be implemented as a
> condition variable with a three state predicate, one for unset, one for set,
> and one for pulsed. There is no reason I can think of why you would want
> this in the kernel if your only synchronizing between the threads in a
> process.
>
> Condition variables are like events that somebody took the time to
> implement in a reasonably smart way.

See www.ysl.org... there is a C++ EventSemaphore implementation based
around the Win32 semantics.

Brian Macy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:25 EST