Article View: borland.public.cppbuilder.nativeapi
Article #9186Re: mutex won't release
From: Ad Lagendijk
Date: Thu, 22 Jul 2004 20:52
Date: Thu, 22 Jul 2004 20:52
24 lines
1592 bytes
1592 bytes
Thanks. It works. Aart "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:40febcc2$1@newsgroups.borland.com... > > "Ad Lagendijk" <ad_lagendijk@yahoo.com_no_spam> wrote in message > news:40feb982$1@newsgroups.borland.com... > > > HANDLE hMutex = CreateMutex(NULL,true,"1"); > > ReleaseMutex(hMutex); // hMutex does not seem to > > become invalid after this > > Releasing a mutex is not the same thing as freeing the mutex memory. > ReleaseMutex() simply gives up ownership of the mutex so that another > thread/process can gain ownership. To actually free the resources that the > mutex uses, you have to use CloseHandle(). > > > Gambit > >
Technical Details
Message-ID:
<41003d6b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40feb982$1@newsgroups.borland.com> <40febcc2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ad55a220cec49a77 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ad Lagendijk" <ad_lagendijk@yahoo.com_no_spam> Newsgroups: borland.public.cppbuilder.nativeapi References: <40feb982$1@newsgroups.borland.com> <40febcc2$1@newsgroups.borland.com> Subject: Re: mutex won't release Date: Thu, 22 Jul 2004 22:52:41 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 146.50.173.204 Message-ID: <41003d6b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090534763 146.50.173.204 (22 Jul 2004 15:19:23 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail