Article View: borland.public.cppbuilder.nativeapi
Article #15112Re: Mutex and WaitForSingleObject Problem...
From: Colin Maharaj
Date: Wed, 16 Jul 2003 02:32
Date: Wed, 16 Jul 2003 02:32
13 lines
1588 bytes
1588 bytes
> > BTW, you do know that you can lock a file directly, don't you? > > Gambit Yeah but if I lock the file in the producer code, the consumer would probably try to open and get an error. Getting and handling errors is no problem, but I would prefer the consumer open the file when it is time for it to open the file and not check and find errors and then check again. That is....illiminate unecessary looping. I don't know if this sounds good to you?
Technical Details
Message-ID:
<3F14B95B.B2206E4A@cablenett.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3F135784.B6BE9C00@cablenett.net> <3f136552$1@newsgroups.borland.com> <3F13D446.FE380393@cablenett.net> <3f143c01$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4b66d79a94ed9589 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-15 19:39:40 PST Message-ID: <3F14B95B.B2206E4A@cablenett.net> Date: Tue, 15 Jul 2003 22:32:59 -0400 From: Colin Maharaj <cbm@cablenett.net> Reply-To: cbm@cablenett.net X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Mutex and WaitForSingleObject Problem... References: <3F135784.B6BE9C00@cablenett.net> <3f136552$1@newsgroups.borland.com> <3F13D446.FE380393@cablenett.net> <3f143c01$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 196.32.37.65 X-Trace: newsgroups.borland.com 1058323024 196.32.37.65 (15 Jul 2003 19:37:04 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail