Article View: borland.public.cppbuilder.nativeapi
Article #13588Re: Thread synchronisation - Question
From: Remy Lebeau (TeamB)
Date: Mon, 06 Oct 2003 16:32
Date: Mon, 06 Oct 2003 16:32
22 lines
2007 bytes
2007 bytes
"Matt Heling" <heli@nospamheling.de> wrote in message news:3f818e8c@newsgroups.borland.com... > Does that apply for all "Objects" of the VCL (i.e. including > NON-visual Objects and Components) Yes, other than the thread-synchronization objects (TEvent, TCriticalSection, etc). > But I've read, especially TCanvas-Objects were "lockable" > using the method Lock() to avoid other running threads's > access until Unlock() is called after having painted to the > Canvas directly. That does not mean that the underlying drawing is going to be thread-safe even with locking. It depends on the actual device being drawn to whether multithread-drawing to it is supported. In my experience, drawing to a Canvas from multiple threads doesn't usually work correctly. Gambit
Technical Details
Message-ID:
<3f8198e0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!news-xfer.cox.net!peer01.cox.net!cox.net!small1.nntp.aus1.giganews.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:
<3f704989@newsgroups.borland.com> <3f750c0d$2@newsgroups.borland.com> <3f818e8c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,20b65b563d927a2d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-06 10:36:17 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f704989@newsgroups.borland.com> <3f750c0d$2@newsgroups.borland.com> <3f818e8c@newsgroups.borland.com> Subject: Re: Thread synchronisation - Question Date: Mon, 6 Oct 2003 09:32:33 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.75 Message-ID: <3f8198e0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065457888 67.22.137.75 (6 Oct 2003 09:31:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!news-xfer.cox.net!peer01.cox.net!cox.net!small1.nntp.aus1.giganews.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