From 3b7e54b4419b2572bc2e4972eb6609db3d6e5e64 Mon Sep 17 00:00:00 2001
From: kushalsingh007 <kushal.spiderman.singh@gmail.com>
Date: Fri, 13 Mar 2015 03:01:33 +0530
Subject: [PATCH] Core: Change in description of thread_create function. -
 Fixes #2136 - Adds warning about creating threads from within an ISR.

---
 core/include/thread.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/include/thread.h b/core/include/thread.h
index 95d150596f..c95269ead3 100644
--- a/core/include/thread.h
+++ b/core/include/thread.h
@@ -68,6 +68,9 @@
  *  - CREATE_STACKTEST      write markers into the thread's stack to measure the stack's memory
  *                          usage (for debugging and profiling purposes)
  *
+ * @note Currently we support creating threads from within an ISR, however it is considered
+ *       to be a bad programming practice and we strongly discourage it.
+ *
  * @param[out] stack    start address of the preallocated stack memory
  * @param[in] stacksize the size of the thread's stack in bytes
  * @param[in] priority  priority of the new thread, lower mean higher priority
-- 
GitLab