Mercurial > hg > Game > Cerium
view example/MemList/main.cc @ 369:93b33cecba37 draft
change TaskManager.cc
author | aaa |
---|---|
date | Tue, 28 Jul 2009 19:42:59 +0900 |
parents | 1a80a2aa696c |
children | 4748fd7dcd89 |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "TaskManager.h" #include "Func.h" #include "MemList.h" #include "MemorySegment.h" //extern void task_init(void); extern TaskManager *manager; const char *usr_help_str = "Usage: ./hello [-cpu spe_num] [-count N]\n\ -cpu Number of SPE (default 1) \n \ -count Number of task is print \"Hello, World!!\""; // get のテストとか int TMmain(int argc, char *argv[]) { printf("test\n"); uint32 size = 128; uint32 count = 64; MemList* active = manager->createMemList(size, 0); MemList* freelist = manager->createMemList(size, count); // 配列! MemorySegment* e; active->addFirst(e); return 0; }