Mercurial > hg > Game > Cerium
comparison TaskManager/Cell/CellTaskManagerImpl.cc @ 67:7d2874fb0671
*** empty log message ***
author | gongo |
---|---|
date | Sun, 17 Feb 2008 19:04:29 +0900 |
parents | 1034077dd217 |
children | 178459e03f5c |
comparison
equal
deleted
inserted
replaced
66:1034077dd217 | 67:7d2874fb0671 |
---|---|
3 #include <string.h> | 3 #include <string.h> |
4 #include "CellTaskManagerImpl.h" | 4 #include "CellTaskManagerImpl.h" |
5 #include "CellBufferManager.h" | 5 #include "CellBufferManager.h" |
6 #include "types.h" | 6 #include "types.h" |
7 #include "error.h" | 7 #include "error.h" |
8 | |
9 CellTaskManagerImpl::CellTaskManagerImpl(int num) | |
10 { | |
11 machineNum = num; | |
12 } | |
8 | 13 |
9 void | 14 void |
10 CellTaskManagerImpl::init(void) | 15 CellTaskManagerImpl::init(void) |
11 { | 16 { |
12 TaskManagerImpl::init(); | 17 TaskManagerImpl::init(); |
39 __debug_ppe("[SPE %d] finish\n", id); | 44 __debug_ppe("[SPE %d] finish\n", id); |
40 } else { | 45 } else { |
41 __debug_ppe("[PPE] recv from [SPE %d] : 0x%x\n", data, id); | 46 __debug_ppe("[PPE] recv from [SPE %d] : 0x%x\n", data, id); |
42 bufferManager->check_task_finish((HTaskPtr)data); | 47 bufferManager->check_task_finish((HTaskPtr)data); |
43 } | 48 } |
44 | |
45 send = (unsigned int)id; | |
46 //¥ئ¥¹¥بحر | |
47 speThreads->send_mail(id, &send); | |
48 } | 49 } |
49 } | 50 } |
50 | 51 |
51 return TaskManagerImpl::mail_check(mail_list); | 52 return TaskManagerImpl::mail_check(mail_list); |
52 } | 53 } |
53 | 54 |
54 | 55 |
55 TaskManagerImpl* | 56 TaskManagerImpl* |
56 create_impl(int num) | 57 create_impl(int num) |
57 { | 58 { |
58 return new CellTaskManagerImpl(); | 59 return new CellTaskManagerImpl(num); |
59 } | 60 } |