model: factor out a 'switch_from_master()' function
[model-checker.git] / threads.cc
index 9de580297871687e4529f2a67512aa6087a9cc1b..a8f282a8b32efdb96d1d248570fc8b7574af92f7 100644 (file)
@@ -23,7 +23,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);