On (25 Aug 97) Darin Mcbride wrote to Jerry Coffin...
DM> I'm unsure if you realize it, but events and semaphores are
DM> significantly different... :-)
Actually, I am...now. When I first wrote the code, I wasn't, and by the
time I realized my error, it would have been a pain to change.
DM> So, is this a "go ahead and post your thread-safe [?] OS/2-based
DM> templated circular queue"? :-)
Something like that, yeah.
DM> (Win32 could likely get away with just using Critical Sections, but
DM> some of the Semaphore class could only be replicated via undocumented
DM> peeking into the CRITICALSEMAPHORE[?] structure since there is no
DM> other way that I saw to determine who currently owns the semaphore.
Hmm...It's a CRITICAL_SECTION for a critical section, or a HANDLE for a
semaphore. However, I'm interested in knowing why you want to know
about the owner of either. Nearl anything you try to do with that
information is going to be subject to race conditions...
Later,
Jerry.
... The Universe is a figment of its own imagination.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)
|