🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by Eduardo Jauch Fri, 02 Mar 2007 21:00
Doubt about TThread
#2432
Author: Eduardo Jauch
Date: Fri, 02 Mar 2007 21:00
18 lines
1288 bytes
Hi!

I have a litle doubt about TThread...

I'd like to make my Main thread notice that an other thread ended.
How can I do this?

I see about using TEvent... But seens that my MainThread must verify 
periodicaly the signal... There's another way?
I'd like something like this:

app starts thread and continue.
when thread terminate, send a message (like OnClick of the mouse)


There some way to do this?

Thanks! :)
Re: Doubt about TThread
#2433
Author: Remy Lebeau (TeamB)
Date: Fri, 02 Mar 2007 21:52
12 lines
1219 bytes
"Eduardo Jauch" <eduardo.jauch@gmail.com> wrote in message
news:45e8904c@newsgroups.borland.com...

> I'd like to make my Main thread notice that an other
> thread ended. How can I do this?

TThread has an OnTerminate event that is run in the context of the
main thread.  Simply assign an event handler to it.


Gambit
Re: Doubt about TThread
#2434
Author: Eduardo Jauch
Date: Fri, 02 Mar 2007 22:47
21 lines
1488 bytes
Remy Lebeau (TeamB) escreveu:
> "Eduardo Jauch" <eduardo.jauch@gmail.com> wrote in message
> news:45e8904c@newsgroups.borland.com...
> 
>> I'd like to make my Main thread notice that an other
>> thread ended. How can I do this?
> 
> TThread has an OnTerminate event that is run in the context of the
> main thread.  Simply assign an event handler to it.
> 
> 
> Gambit
> 
> 

Cool... :)

Sorry for the question, but how do I do this?
Can you show an exemple? (or point to one?)

Thanks! :)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads