Mercurial > hg > Game > Cerium
changeset 1178:cb8161fd0af1 draft
add CpuThreads Test code.
author | Daichi TOMA |
---|---|
date | Sat, 18 Jun 2011 03:25:31 +0900 |
parents | 730f5e5c8351 |
children | 5393bebe0956 |
files | TaskManager/CpuThreadsTest/CpuThreadsTest.cc TaskManager/CpuThreadsTest/Makefile |
diffstat | 2 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/CpuThreadsTest/CpuThreadsTest.cc Sat Jun 18 03:25:31 2011 +0900 @@ -0,0 +1,18 @@ +#include <stdio.h> +#include "TaskManager/CpuThreads.h" + +static void +test1() { + CpuThreadsPtr m = new CpuThreads(3); + m->init(); + delete m; +} + +int +main(int ac, const char *av[]) +{ + test1(); + printf("CpuThreads succeed\n"); +} + +/* end */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/CpuThreadsTest/Makefile Sat Jun 18 03:25:31 2011 +0900 @@ -0,0 +1,15 @@ +include ../Makefile.def + +CPPFLAGS += -g -Wall -I../../include -m$(ABIBIT) + +TARGET=CpuThreadsTest + +$(TARGET) : + +LIBS += ../libParallelManager.a + +CpuThreadsTest : CpuThreadsTest.o + $(CC) $(CFLAGS) -o $@ $? $(LIBS) + +clean: + rm -rf *.o $(TARGET)