summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine/rtems-bsd-thread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-23 09:47:09 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:50 +0100
commitf9c271459034e777d586f589af90deb9b7acd5a0 (patch)
tree2065e9400ad6dc3175fb2e5230282c2cf6c6b950 /rtemsbsd/include/machine/rtems-bsd-thread.h
parentRename file to reflect FreeBSD origin (diff)
downloadrtems-libbsd-f9c271459034e777d586f589af90deb9b7acd5a0.tar.bz2
SLEEP(8): New implementation
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-thread.h')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-thread.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-thread.h b/rtemsbsd/include/machine/rtems-bsd-thread.h
index b8088b50..81aef32e 100644
--- a/rtemsbsd/include/machine/rtems-bsd-thread.h
+++ b/rtemsbsd/include/machine/rtems-bsd-thread.h
@@ -43,7 +43,9 @@
#include <rtems/bsd/sys/param.h>
#include <rtems/bsd/sys/types.h>
#include <sys/proc.h>
+#include <sys/queue.h>
+#include <rtems/score/threadq.h>
#include <rtems.h>
#define BSD_TASK_NAME rtems_build_name('_', 'B', 'S', 'D')
@@ -59,6 +61,13 @@
/* FIXME */
#define BSD_MINIMUM_TASK_STACK_SIZE ((size_t) 32 * 1024)
+struct sleepqueue {
+ Thread_queue_Control sq_blocked;
+ LIST_ENTRY(sleepqueue) sq_hash;
+ LIST_HEAD(, sleepqueue) sq_free;
+ void *sq_wchan;
+};
+
extern rtems_chain_control rtems_bsd_thread_chain;
struct thread *