Article View: borland.public.cppbuilder.nativeapi
Article #16968Re: CreateMutex/ReleaseMutex/CloseHandle Question
From: Remy Lebeau (TeamB)
Date: Thu, 17 Apr 2003 19:02
Date: Thu, 17 Apr 2003 19:02
14 lines
1442 bytes
1442 bytes
"CC" <Xcurtc@tmscorp.com> wrote in message news:3e9eef46$1@newsgroups.borland.com... > It appears that ReleaseMutex() may not actaully free > up resources associated with the handle? It's not supposed to. ReleaseMutex() only releases the lock on the mutex (if the calling thread has the lock to begin with, that is), so that another thread waiting for the mutex lock can then obtain it. It is CloseHandle() only that actualy frees the mutex resources when you're done using them. Gambit
Technical Details
Message-ID:
<3e9efa06$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e9eef46$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ba0a51417ad3c412 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-17 12:10:24 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e9eef46$1@newsgroups.borland.com> Subject: Re: CreateMutex/ReleaseMutex/CloseHandle Question Date: Thu, 17 Apr 2003 12:02:09 -0700 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e9efa06$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050606086 207.175.226.26 (17 Apr 2003 12:01:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail