summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/threadqimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-20 06:57:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-22 09:25:08 +0200
commitb46622684ac3194d75bab2a6d9a3d55f4897ae24 (patch)
tree6e5a73b4ee50f3236759ac98437c89319a6716ee /cpukit/score/include/rtems/score/threadqimpl.h
parentposix: Use _Objects_Get_local() for semaphores (diff)
downloadrtems-b46622684ac3194d75bab2a6d9a3d55f4897ae24.tar.bz2
score: Add _Thread_queue_Is_empty()
Diffstat (limited to 'cpukit/score/include/rtems/score/threadqimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/threadqimpl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h
index 7b1c896f12..68ce109b7d 100644
--- a/cpukit/score/include/rtems/score/threadqimpl.h
+++ b/cpukit/score/include/rtems/score/threadqimpl.h
@@ -547,6 +547,13 @@ void _Thread_queue_Extract_with_proxy(
Thread_Control *the_thread
);
+RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_empty(
+ const Thread_queue_Queue *queue
+)
+{
+ return queue->heads == NULL;
+}
+
/**
* @brief Returns the first thread on the thread queue if it exists, otherwise
* @c NULL.