snapshot: don't export page-aligning functions
[c11tester.git] / threads.h
index e52c324eb0fb81119d8063625c21387443105b18..0e0293ad817332e867db1e7b92c490da3c3f9b19 100644 (file)
--- a/threads.h
+++ b/threads.h
@@ -1,3 +1,7 @@
+/** @file threads.h
+ *  @brief Model Checker Thread class.
+ */
+
 #ifndef __THREADS_H__
 #define __THREADS_H__
 
@@ -16,6 +20,8 @@ typedef enum thread_state {
        THREAD_COMPLETED
 } thread_state;
 
+class ModelAction;
+
 class Thread {
 public:
        Thread(thrd_t *t, void (*func)(void *), void *a);
@@ -31,12 +37,16 @@ public:
        thrd_t get_thrd_t() { return *user_thread; }
        Thread * get_parent() { return parent; }
 
+       void set_creation(ModelAction *act) { creation = act; }
+       ModelAction * get_creation() { return creation; }
+
        friend void thread_startup();
 
        SNAPSHOTALLOC
 private:
        int create_context();
        Thread *parent;
+       ModelAction *creation;
 
        void (*start_routine)(void *);
        void *arg;