109
|
1 #ifndef INCLUDED_TASK_QUEUE
|
|
2 #define INCLUDED_TASK_QUEUE
|
|
3
|
|
4 #ifndef INCLUDED_BASE_H_
|
|
5 # include "base.h"
|
|
6 #endif
|
|
7
|
|
8 #ifndef INCLUDED_TASK
|
|
9 # include "Task.h"
|
|
10 #endif
|
|
11
|
|
12 #include <stdio.h>
|
|
13
|
|
14 class TaskQueue {
|
|
15 public:
|
|
16 TaskQueue(TaskPtr q = NULL);
|
|
17
|
|
18 BASE_NEW_DELETE(TaskQueue);
|
|
19
|
|
20 TaskPtr task;
|
|
21 class TaskQueue *next;
|
|
22
|
|
23 static TaskQueue* append(TaskQueue* list, TaskQueue* q);
|
|
24 };
|
|
25
|
|
26 typedef TaskQueue* TaskQueuePtr;
|
|
27
|
|
28 #endif
|