Article View: borland.public.cppbuilder.nativeapi
Article #13701Re: Thread synchronisation
From: Wim Bekker
Date: Mon, 29 Sep 2003 09:00
Date: Mon, 29 Sep 2003 09:00
13 lines
1452 bytes
1452 bytes
"Remy Lebeau (TeamB)" wrote: > No. Use Synchronize() to access the Canvas. > > Preferably, anything related to the GUI should be done in the main thread. Thanks Gambit. For most part I will not use the Synchronize method as it could halt the thread until the main-thread handles the request. Instead, I copy all needed values into a thread-safe place and signal the main thread that there's info available (PostMessage). This works perfectly and allows the heavy duty thread to perform best. Wim
Technical Details
Message-ID:
<3f77f4b0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f704989@newsgroups.borland.com> <3f750c0d$2@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-09-29 02:09:19 PST From: "Wim Bekker" <wim@bekker> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f704989@newsgroups.borland.com> <3f750c0d$2@newsgroups.borland.com> Subject: Re: Thread synchronisation Date: Mon, 29 Sep 2003 11:00:06 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.238.29.217 Message-ID: <3f77f4b0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1064826032 212.238.29.217 (29 Sep 2003 02:00:32 -0700) Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail