Sack Library Documentation
|
IMPORT_METHOD int IsThisThreadEx(PTHREAD pThreadTest DBG_PASS); #define IsThisThread(thread) IsThisThreadEx(thread DBG_SRC)
Parameters |
Description |
thread |
thread to check to see if it is the current thread. |
This tests to see if a pointer to a thread references the current thread.
// mark that this thread is complete thread_finished_check = TRUE;
// hmm - for some reason, just pass the PTRSZVAL that was passed to ThreadTo as the result. return GetThreadParam( thread ); } int main( void ) { main_thread = MakeThread(); ThreadTo( ThreadProc, 0 ); // wait for the thread to finish its thread identity check. while( !thread_finished_check ) Relinquish(); return 0; }
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|