🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5182

Re: Simulate Synchronize()

#5182
From: tinyabs
Date: Fri, 30 Sep 2005 19:12
10 lines
1640 bytes
> In BCB v6, TThread no longer does any of that.  Now, TThread uses a global
> list of method pointers instead.  Synchronize() adds the specified class
> method to that list, along with a Win32 API event object (ala
> CreateEvent()).  Then a message is posted to the main thread via
> PostMessage().  After Synchronize() puts a method into the list, it waits
> for the event object to be signaled.  When the main thread is idle, or the
> Synchronize() message is received, the main thread runs through the list,
> calling all of the stored methods and signalling their events.

Thanks, I had create a similar code to do it. 
Technical Details
Message-ID: <433d8d9f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <433d6e38$1@newsgroups.borland.com> <433d773b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,70c83516558f2780
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "tinyabs" <nospam@me.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <433d6e38$1@newsgroups.borland.com> <433d773b$1@newsgroups.borland.com>
Subject: Re: Simulate Synchronize() 
Date: Sat, 1 Oct 2005 03:12:20 +0800
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
NNTP-Posting-Host: 222.165.3.45
Message-ID: <433d8d9f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1128107423 222.165.3.45 (30 Sep 2005 12:10:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail