thread: remove dead Thread code
[model-checker.git] / threads.h
index 0c5fdab9d7a2209d4fda10680b0f737b03c657f2..69bd115c4a88243657ce8f92088962f97249dccb 100644 (file)
--- a/threads.h
+++ b/threads.h
@@ -16,10 +16,14 @@ typedef enum thread_state {
 
 class Thread {
 public:
+       void * operator new(size_t size);
+       void operator delete(void *ptr);
        Thread(thrd_t *t, void (*func)(), void *a);
-       Thread(thrd_t *t);
-       int swap(Thread *t);
-       void dispose();
+       ~Thread();
+       void complete();
+
+       static int swap(ucontext_t *ctxt, Thread *t);
+       static int swap(Thread *t, ucontext_t *ctxt);
 
        thread_state get_state() { return state; }
        void set_state(thread_state s) { state = s; }