X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads.h;h=b592804db95959445d5c4f967f449121e2d59bad;hb=1d6c949fef3b5da936f8499dde464f8df634267a;hp=345f42077a2372510d5922cd31d26420ed274cd7;hpb=e759b60e0b2dc31623ba3b03303a9d0d204fdd4c;p=model-checker.git diff --git a/threads.h b/threads.h index 345f420..b592804 100644 --- a/threads.h +++ b/threads.h @@ -2,7 +2,7 @@ #define __THREADS_H__ #include - +#include "mymemory.h" #include "libthreads.h" typedef int thread_id_t; @@ -18,8 +18,6 @@ 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(); void complete(); @@ -32,6 +30,7 @@ public: thread_id_t get_id(); thrd_t get_thrd_t() { return *user_thread; } Thread * get_parent() { return parent; } + MEMALLOC private: int create_context(); Thread *parent;