2 This file is part of libmspframework
3 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
4 Distributed under the LGPL
14 Waits for the thread to exit. Calling this from the thread will cause a
23 WaitForSingleObject(thread_, INFINITE);
25 pthread_join(thread_, 0);
31 Requests the thread to terminate gracefully. Currently unimplemented on win32.
36 pthread_cancel(thread_);
41 Violently terminates the thread.
46 TerminateThread(thread_, 0);
48 pthread_kill(thread_, SIGKILL);
64 DWORD dummy; // Win9x needs the lpTthreadId parameter
65 thread_=CreateThread(0, 0, &main_, this, 0, &dummy);
67 pthread_create(&thread_, 0, &main_, this);