Re: GEvent - Proposal for a new threading structure for GLib



On 11/17/06, mark mark mielke cc <mark mark mielke cc> wrote:
I would suggest that somebody look at what the full requirements are,
and not mimic Python. :-)

I agree. I suggest that the use/syntax of .NET's WaitHandle,
AutoResetEvent, ManualResetEvent be looked over. .NET/mono make this
concept very easy to use. More specifically, the semantics behind Auto
vs Manual, as well as the ability to WaitOne() on a single handle
versus WaitAny() & WaitAll() on an array of them.

Lazy links:
http://msdn2.microsoft.com/en-us/library/system.threading.waithandle.aspx
http://msdn2.microsoft.com/en-us/library/system.threading.autoresetevent.aspx
http://msdn2.microsoft.com/en-us/library/system.threading.manualresetevent.aspx

-Andrew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]