add a new thread constructor for pthread
[c11tester.git] / threads-model.h
index 733d825..11f2d54 100644 (file)
@@ -42,6 +42,7 @@ class Thread {
 public:
        Thread(thread_id_t tid);
        Thread(thread_id_t tid, thrd_t *t, void (*func)(void *), void *a, Thread *parent);
+       Thread(thread_id_t tid, thrd_t *t, void *(*func)(void *), void *a, Thread *parent);
        ~Thread();
        void complete();
 
@@ -131,6 +132,7 @@ private:
        ModelAction *pending;
 
        void (*start_routine)(void *);
+       void *(*pstart_routine)(void *);
        void *arg;
        ucontext_t context;
        void *stack;