Mercurial > hg > Members > kono > Cerium
diff TaskManager/kernel/ppe/TaskQueueInfo.cc @ 93:dd33ec2e51b9
*** empty log message ***
author | gongo |
---|---|
date | Thu, 28 Feb 2008 17:32:18 +0900 |
parents | f154d9d07a42 |
children | 588ab5f0e659 |
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/TaskQueueInfo.cc Thu Feb 28 10:45:40 2008 +0900 +++ b/TaskManager/kernel/ppe/TaskQueueInfo.cc Thu Feb 28 17:32:18 2008 +0900 @@ -21,6 +21,9 @@ { TaskQueuePtr q = NULL; + static int i = 0; + printf("extend %d\n", ++i); + q = (TaskQueuePtr)malloc(sizeof(TaskQueue)*(num+1)); if (q == NULL) { @@ -43,6 +46,10 @@ TaskQueueInfo::create(HTaskPtr task) { TaskQueuePtr q; + + static int i = 0; + + printf("create %d\n", ++i); if (freeTaskQueue == NULL) { extend_pool(100); @@ -60,6 +67,11 @@ void TaskQueueInfo::free(TaskQueuePtr q) { + static int i = 0; + + printf("free %d\n", ++i); + printf("## command %d ##\n", q->task->command); + q->next = freeTaskQueue; freeTaskQueue = q; }