Newsgroups: comp.os.ms-windows.programmer.win32
From: unoriginal_usern...@yahoo.com (Le Chaud Lapin)
Date: 15 Mar 2003 21:42:06 -0800
Local: Sun, Mar 16 2003 12:42 am
Subject: Re: Counting semaphore
"v patel" <vipul.pa...@intel.com> wrote in message <news:TG8ca.5431$io.230820@iad-read.news.verio.net>... No. > - Does this kernel object adjusts reference count to reflect abandonment by > one of the processes Closing a handle and changing the reference count are two different You might imagine a situation where there is a system-wide semaphore So you can see that it would be conceptually inappropriate for the OS Another way to look at it is to imagine that a process incremented a > - If above is not true, is there any other mechanism to handle "Abandonment A good solution to this problem is C++ exception handling. Structure > Issue" without relying on > some sort of process monitoring service etc.. your code so that if a hard exit occurs, the semaphore objects automatically adjust reference count as necessary. > - Is there any way to get the current available count without -John- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||