Discussion Board
Controlling primary thread
2004-04-13, 21:32
#1
Registered User
Is it possible to control the execution of the primary thread from another thread.
If yes how is it done? Can I get the RThread object of the primary thread?
Thanks
Controlling primary thread
2004-04-14, 09:17
#2
Regular Contributor
Hey,
You need to use the following code in your primary code to get its associated RThread object:
RThread myThread;
myThread.DuplicateHandle();
Then you can pass this object to the other thread which can then use it to control the primary thread.
Regards, Aljaz
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules