3 This file is part of libmspcore
4 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_CORE_THREAD_H_
9 #define MSP_CORE_THREAD_H_
14 Base class for threads. To create a thread for some task, derive it from this
15 class and implement the main() function. Note that threads are not
16 automatically started upon creation - you must manually call launch() instead.
17 This is to allow initializing variables of the derived class before the thread
31 Thread(const Thread &);
32 Thread &operator=(const Thread &);
40 virtual void main() = 0;