summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-22 10:06:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-05-19 12:00:45 +0200
commit08fe84b5d7072b7809581b1a25954a3b221497a5 (patch)
tree79a1ea39b1ea24ca25bf9f450a726efe80dd6257 /cpukit/score/include/rtems/score/thread.h
parentscore: Reduce thread wait states (diff)
downloadrtems-08fe84b5d7072b7809581b1a25954a3b221497a5.tar.bz2
score: Generalize _Event_Timeout()
Add a thread wait timeout code. Replace _Event_Timeout() with a general purpose _Thread_Timeout() watchdog handler. Update #2273.
Diffstat (limited to 'cpukit/score/include/rtems/score/thread.h')
-rw-r--r--cpukit/score/include/rtems/score/thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 112bd22e63..1a73fdaa8a 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -354,6 +354,11 @@ typedef struct {
*/
uint32_t return_code;
+ /**
+ * @brief Code to set the timeout return code in _Thread_Timeout().
+ */
+ uint32_t timeout_code;
+
/** This field points to the thread queue on which this thread is blocked. */
Thread_queue_Control *queue;