From 0f390b743634ef4cdda03da8cb3f175524d59bd0 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 3 Jul 2011 15:34:29 +0200 Subject: Removed old stuff. --- thread.h | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 thread.h (limited to 'thread.h') diff --git a/thread.h b/thread.h deleted file mode 100644 index b69801a..0000000 --- a/thread.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef THREAD_H -#define THREAD_H - -#include - -#define noreturn_t __attribute__((noreturn)) void - -template -class BaseThread { - private: - WORKING_AREA(stack_space, stack_size); - - static inline noreturn_t thread_main_wrap(void* arg) { - ((Child*)arg)->thread_main(); - } - - public: - void start(tprio_t priority = NORMALPRIO) { - chThdCreateStatic(stack_space, sizeof(stack_space), priority, (tfunc_t)thread_main_wrap, this); - } -}; - -#endif -- cgit v1.2.3