annotate include/TaskManager/TaskManager.h @ 89:a309cf4eafc5

*** empty log message ***
author gongo
date Wed, 27 Feb 2008 17:26:40 +0900
parents 504899860e66
children 3e331f7576a1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_TASK_MANAGER
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_TASK_MANAGER
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
4 #ifndef INCLUDED_TASK_MANAGER_IMPL
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
5 # include "TaskManagerImpl.h"
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
6 #endif
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
7
14
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
8 #ifndef INCLUDED_SYMTABLE
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
9 # include "SymTable.h"
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
10 #endif
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
11
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
12 class TaskManager {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
13 public:
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
14 /* constructor */
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
15 TaskManager(int num = 1); // The number of threads
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
16
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
17 /* variables */
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
18 TaskManagerImpl *m_impl;
14
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
19 static SymTable *symtb;
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
20
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
21 /* functions */
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
22 void init(void);
20
31a7ff27ee20 *** empty log message ***
gongo
parents: 18
diff changeset
23 void finish(void);
88
504899860e66 *** empty log message ***
gongo
parents: 80
diff changeset
24 //HTaskPtr create_task(int cmd, int siz, DmaBuffer *in_addr,
504899860e66 *** empty log message ***
gongo
parents: 80
diff changeset
25 //DmaBuffer *out_addr, void (*func)(void));
504899860e66 *** empty log message ***
gongo
parents: 80
diff changeset
26 HTaskPtr create_task(int cmd, int siz, unsigned int in_addr,
504899860e66 *** empty log message ***
gongo
parents: 80
diff changeset
27 unsigned int out_addr, void (*func)(void));
63
54355e641172 *** empty log message ***
gongo
parents: 54
diff changeset
28 //void set_task_depend(HTaskPtr master, HTaskPtr slave);
54355e641172 *** empty log message ***
gongo
parents: 54
diff changeset
29 //void spawn_task(HTaskPtr);
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
30 void run(void);
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
31
14
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
32 void set_init_task(const char *sym);
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
33
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
34 void set_symbol(const char *sym, void *addr);
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
35 int open(const char *sym);
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
36 static void* get_address(int fd);
54
90523ccc4dff *** empty log message ***
gongo
parents: 20
diff changeset
37
90523ccc4dff *** empty log message ***
gongo
parents: 20
diff changeset
38 DmaBuffer* allocate(int size);
14
41ccd4b38184 *** empty log message ***
gongo
parents: 3
diff changeset
39
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
40 private:
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
41 int machineNum;
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
42 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
43
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
44 #endif