TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DARIN MCBRIDE
from: JERRY COFFIN
date: 1997-08-28 16:31:00
subject: volatile objects?

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.