Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
Destroy all variables of a thread
Destroy all variables of a thread
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Macinbomzh
New Member
Join Date:
Nov 2009
Posts:
11
#1
Destroy all variables of a thread
Dec 3 '09, 05:10 PM
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
Join Date:
Mar 2007
Posts:
9214
#2
Dec 3 '09, 05:15 PM
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
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment