You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
331 B
C++
19 lines
331 B
C++
// vim: set noet ts=4 sw=4:
|
|
|
|
#include "thread.h"
|
|
|
|
// Alias to simplify stuff
|
|
typedef void (*kickoff_t)(void*);
|
|
|
|
void Thread::kickoff(Thread* object) {
|
|
Guard::leave();
|
|
object->action(); }
|
|
|
|
Thread::Thread(void* tos) { (void)tos; }
|
|
|
|
void Thread::resume(Thread* next) { (void)next; }
|
|
|
|
void Thread::go() {}
|
|
|
|
void Thread::action() {}
|