model: schedule appropriate fence backtracking points
[c11tester.git] / threads.cc
index 9de580297871687e4529f2a67512aa6087a9cc1b..1de548ccdb93ccd41a2a0248a49be2937dd87f01 100644 (file)
@@ -7,6 +7,7 @@
 #include <threads.h>
 #include "common.h"
 #include "threads-model.h"
+#include "action.h"
 
 /* global "model" object */
 #include "model.h"
@@ -23,7 +24,13 @@ static void stack_free(void *stack)
        snapshot_free(stack);
 }
 
-/** Return the currently executing thread. */
+/**
+ * @brief Get the current Thread
+ *
+ * Must be called from a user context
+ *
+ * @return The currently executing thread
+ */
 Thread * thread_current(void)
 {
        ASSERT(model);