Article View: borland.public.cppbuilder.nativeapi
Article #2072Re: Need help with Mutex
From: Bob Gonder
Date: Sun, 29 Apr 2007 14:12
Date: Sun, 29 Apr 2007 14:12
15 lines
1597 bytes
1597 bytes
Dennis Jones wrote: > Could you please >explain how this methodology works to eliminate deadlock? >> The wait() satisfies with pre-ownership to eliminate deadlock. Rephrase: pre-ownership satisfies the wait (eliminating deadlocking on self) If I own the mutex, and issue a wait, the wait returns with another ownership, it doesn't wait for me to release my original ownership. This allows you to re-use functions that lock/modify/release without affecting your own ownership.
Technical Details
Message-ID:
<i89933p12gh0sova1q3pi86do92sdjc1qg@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4633777f$1@newsgroups.borland.com> <4633807b$1@newsgroups.borland.com> <i717339g3u8esppurihllgq3aj0a5qelig@4ax.com> <46341b0e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,28184df4065864d1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Need help with Mutex Date: Sun, 29 Apr 2007 07:12:25 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <i89933p12gh0sova1q3pi86do92sdjc1qg@4ax.com> References: <4633777f$1@newsgroups.borland.com> <4633807b$1@newsgroups.borland.com> <i717339g3u8esppurihllgq3aj0a5qelig@4ax.com> <46341b0e$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.147.157 X-Trace: newsgroups.borland.com 1177855943 67.77.147.157 (29 Apr 2007 07:12:23 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail