Article View: borland.public.cppbuilder.nativeapi
Article #13516Re: Thread synchronisation - Question
From: Matt Heling
Date: Tue, 07 Oct 2003 15:43
Date: Tue, 07 Oct 2003 15:43
35 lines
2610 bytes
2610 bytes
Thank You, Remy, I hope, my following question still belongs to this newsgroup topic: Remy Lebeau (TeamB) <gambit47.no.spam@no.spam.yahoo.com> schrieb in im Newsbeitrag: 3f8198e0$1@newsgroups.borland.com... > > "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). > Is it possible (and useful) to write a BCB-VCL-Component (nonvisual during runtime) using two or more threads, nevertheless? Because: I'm trying to write a component, which in one thread fetches data from some hardware (measurement data), whenever data should be ready to be fetched, stores the data immediately into memory buffer (a kind of a Fifo) and "tells" the other thread, it would now be allowed to read the data, when it would be ready to do so. By doing so, I'm hoping to make the component able to fetch each occuring dataset on one hand, and to have enough time to process the data on the other hand (independent from the "fetch thread"). "Process the data" should mean in that case: The component shall work as a dataprovider for subsequent (using) dataprocess-components. (I'm afraid, this question actually belongs to the ...vcl.components.writing-group, but this is almost the only group discussing threads...You have my apologies. ...) Thanks Heli
Technical Details
Message-ID:
<3f82de8b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!small1.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> <3f8198e0$1@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-07 09:04:14 PST From: "Matt Heling" <heli@_REMOVE_THIS_heling.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f704989@newsgroups.borland.com> <3f750c0d$2@newsgroups.borland.com> <3f818e8c@newsgroups.borland.com> <3f8198e0$1@newsgroups.borland.com> Subject: Re: Thread synchronisation - Question Date: Tue, 7 Oct 2003 17:43:36 +0200 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 80.144.168.220 Message-ID: <3f82de8b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065541259 80.144.168.220 (7 Oct 2003 08:40:59 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!small1.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