3 This file is part of libmspcore
4 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
15 Waits for the thread to exit. Calling this from the thread will cause a
24 WaitForSingleObject(thread_, INFINITE);
26 pthread_join(thread_, 0);
32 Requests the thread to terminate gracefully. Currently unimplemented on win32.
37 pthread_cancel(thread_);
42 Violently terminates the thread.
47 TerminateThread(thread_, 0);
49 pthread_kill(thread_, SIGKILL);
65 DWORD dummy; // Win9x needs the lpTthreadId parameter
66 thread_=CreateThread(0, 0, &main_, this, 0, &dummy);
68 pthread_create(&thread_, 0, &main_, this);