×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    3

    Controlling primary thread

    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

  2. #2
    Regular Contributor
    Join Date
    Sep 2003
    Posts
    169

    Controlling primary thread

    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
  •