mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 09:51:10 +08:00
SLEEP(8): New implementation
This commit is contained in:
@@ -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 *
|
||||
|
Reference in New Issue
Block a user