SLEEP(8): New implementation

This commit is contained in:
Sebastian Huber
2013-10-23 09:47:09 +02:00
parent 24732b6de5
commit f9c2714590
7 changed files with 220 additions and 242 deletions

View File

@@ -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 *