summaryrefslogtreecommitdiff
path: root/src/components/include/utils/threads/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/include/utils/threads/thread.h')
-rw-r--r--src/components/include/utils/threads/thread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/include/utils/threads/thread.h b/src/components/include/utils/threads/thread.h
index 7791a4f754..98e0f51f87 100644
--- a/src/components/include/utils/threads/thread.h
+++ b/src/components/include/utils/threads/thread.h
@@ -198,6 +198,12 @@ class Thread {
}
/**
+ * @brief Checks if invoked in this Thread context
+ * @return True if called from this Thread class, false otherwise
+ */
+ bool IsCurrentThread() const;
+
+ /**
* @brief Thread options.
* @return thread options.
*/