Mercurial > hg > Game > CbCTaskManager
changeset 16:e89acebd97b1
add declaration
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 12 Jan 2010 16:29:05 +0900 |
parents | 2e764a0ae8ff |
children | b5bbbeec1fe8 d31f9a0f9024 |
files | src/pthread/TaskManager.cbc src/pthread/ThreadManager.cbc |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pthread/TaskManager.cbc Sat Jan 09 18:48:57 2010 +0900 +++ b/src/pthread/TaskManager.cbc Tue Jan 12 16:29:05 2010 +0900 @@ -29,6 +29,8 @@ __code checkEvent_real (TaskManager *manager); static __code selectCode (TaskManager *manager); static __code schedEntry(UserManager *user, Taskrun nextcode, void *rbuff, void *wbuff); +__code startThreadManager(TaskManager *manager); +__code startThreadManager_iter(TaskManager *manager, int i); /* external code segments. */ extern __code executed (TaskManager *manager, ListIter *iter, Task *task);
--- a/src/pthread/ThreadManager.cbc Sat Jan 09 18:48:57 2010 +0900 +++ b/src/pthread/ThreadManager.cbc Tue Jan 12 16:29:05 2010 +0900 @@ -20,6 +20,10 @@ */ } UserManager; +__code threadloop(ThreadManager *manager); +__code exitThread(ThreadManager *manager); +__code checkNewTask(ThreadManager *manager); +__code waitNewTask(ThreadManager *manager); static __code schedEntry(UserManager *user, Taskrun nextcode, void *rbuff, void *wbuff); static __code selectCode(ThreadManager *manager);