From 4162a2aff8e9d900dfebe68d8fa8f64d575f5b51 Mon Sep 17 00:00:00 2001 From: Oliver Hahm Date: Tue, 13 Nov 2012 17:26:43 +0100 Subject: [PATCH] [core thread] * added thread_getlastpid() to header --- core/include/thread.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/include/thread.h b/core/include/thread.h index 77eea8d4ba..11c620c3df 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -62,6 +62,12 @@ int thread_wakeup(int pid); */ int thread_getpid(); +/** + * @brief Returns the process ID of the thread running before the current one. + * @return Obviously you are not a golfer. + */ +int thread_getlastpid(); + /** * @brief Measures the stack usage of a stack. * Only works if the thread was created with the flag CREATE_STACKTEST.