Destroy all variables of a thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Macinbomzh
    New Member
    • Nov 2009
    • 11

    #1

    Destroy all variables of a thread

    I have a created a thread and saved its pointer in a handle.
    How can I stop the thread and destroy all the variables in it?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    The thread is a function. When the function is complete the variables will be destroyed.

    All you have to do is signal the thread function to return.

    How you do that is OS dependent.

    I can show you how in Windows only.

    Comment

    Working...