model: don't reset action_trace manually
[model-checker.git] / threads.h
index b592804db95959445d5c4f967f449121e2d59bad..e52c324eb0fb81119d8063625c21387443105b18 100644 (file)
--- a/threads.h
+++ b/threads.h
@@ -18,7 +18,7 @@ typedef enum thread_state {
 
 class Thread {
 public:
-       Thread(thrd_t *t, void (*func)(), void *a);
+       Thread(thrd_t *t, void (*func)(void *), void *a);
        ~Thread();
        void complete();
 
@@ -30,12 +30,15 @@ public:
        thread_id_t get_id();
        thrd_t get_thrd_t() { return *user_thread; }
        Thread * get_parent() { return parent; }
-  MEMALLOC
+
+       friend void thread_startup();
+
+       SNAPSHOTALLOC
 private:
        int create_context();
        Thread *parent;
 
-       void (*start_routine)();
+       void (*start_routine)(void *);
        void *arg;
        ucontext_t context;
        void *stack;