3 This file is part of libmspcore
4 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
16 Waits for the thread to exit. Calling this from the thread will cause a
25 WaitForSingleObject(thread_, INFINITE);
27 pthread_join(thread_, 0);
33 Requests the thread to terminate gracefully. Currently unimplemented on win32.
38 pthread_cancel(thread_);
43 Violently terminates the thread.
48 TerminateThread(thread_, 0);
50 pthread_kill(thread_, SIGKILL);
66 DWORD dummy; // Win9x needs the lpTthreadId parameter
67 thread_=CreateThread(0, 0, &main_, this, 0, &dummy);
69 pthread_create(&thread_, 0, &main_, this);