[riot-notifications] [RIOT-OS/RIOT] core/thread: add getters for thread_t (#16818)

benpicco notifications at github.com
Tue Sep 14 15:34:12 CEST 2021


@benpicco commented on this pull request.



> +    return thread->stack_start;
+#else
+    (void)thread;
+    return NULL;
+#endif
+}
+
+/**
+ * Get stored Stack Pointer of thread.
+ *
+ * *Only provides meaningful value if the thread is not currently running!*.
+ *
+ * @param   thread thread to work on
+ * @returns current stack pointer
+ */
+static inline void *thread_get_sp(const thread_t *thread)

Does `ps` require non-const access to the thread stack? :fearful: 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16818#discussion_r708274419
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210914/c6b1d1b9/attachment.htm>


More information about the notifications mailing list