GadgetSeed
0.9.6
sleepqueue.h
[詳解]
1
/** @file
2
@brief スリープタスク制御
3
4
これらの関数は非タスク状態からコールされる
5
6
@date 2011.03.17
7
@author Takashi SHUDO
8
*/
9
10
#ifndef SLEEPQUEUE_H
11
#define SLEEPQUEUE_H
12
13
#include "
task/task.h
"
14
15
extern
struct
tcb_queue
timeout_wait_queue_head
;
16
17
void
sleepqueue_add(
struct
st_tcb
*
tcb
,
unsigned
int
sleep_time,
18
unsigned
int
now_time);
19
struct
st_tcb
*sleepqueue_schedule(
unsigned
long
long
now_time);
20
21
#endif // SLEEPQUEUE_H
tcb_queue
タスクキュー
Definition:
tcb.h:27
tcb_queue::tcb
struct st_tcb * tcb
タスクコンテキストブロックポインタ
Definition:
tcb.h:29
task.h
タスク制御
timeout_wait_queue_head
struct tcb_queue timeout_wait_queue_head
タイムアウト待ちタスクキュー
Definition:
sleepqueue.c:24
st_tcb
タスクコンテキスト
Definition:
tcb.h:32
kernel
task
sleepqueue.h
構築:
1.8.13