# HG changeset patch # User Masataka Kohagura # Date 1390135192 -32400 # Node ID c228dbede5df9152c92f888b6c77cd71b9c85510 # Parent bd5152f8fe3abb233100a0759d89f8f79a51c16b rename Task name in fileread diff -r bd5152f8fe3a -r c228dbede5df example/fileread/Func.h --- a/example/fileread/Func.h Fri Jan 17 10:21:08 2014 +0900 +++ b/example/fileread/Func.h Sun Jan 19 21:39:52 2014 +0900 @@ -2,7 +2,7 @@ #include "SysTasks.h" Read_task, Print_task, - RUN_BLOCKS, + RUN_READ_BLOCKS, MMAP, }; diff -r bd5152f8fe3a -r c228dbede5df example/fileread/main.cc --- a/example/fileread/main.cc Fri Jan 17 10:21:08 2014 +0900 +++ b/example/fileread/main.cc Sun Jan 19 21:39:52 2014 +0900 @@ -29,10 +29,10 @@ off_t size; } st_mmap_t; -SchedDefineTask1(RUN_BLOCKS,run16); +SchedDefineTask1(RUN_READ_BLOCKS,read_run); static int -run16(SchedTask *manager, void *in, void *out) { +read_run(SchedTask *manager, void *in, void *out) { FileReadPtr fr = (FileReadPtr)in; char* read_text = (char*)out; @@ -64,7 +64,7 @@ if (fr->left_size > 0) { - HTaskPtr next = manager->create_task(RUN_BLOCKS, (memaddr)&fr->self, sizeof(memaddr),read_text,fr->filesize); + HTaskPtr next = manager->create_task(RUN_READ_BLOCKS, (memaddr)&fr->self, sizeof(memaddr),read_text,fr->filesize); fr->t_print->wait_for(next); next->wait_for(wait); @@ -176,7 +176,7 @@ if (divide_read_flag != 0) { char *read_text = (char*)manager->allocate(fr->filesize); - run = manager->create_task(RUN_BLOCKS, (memaddr)&fr->self, sizeof(memaddr),read_text,fr->filesize); + run = manager->create_task(RUN_READ_BLOCKS, (memaddr)&fr->self, sizeof(memaddr),read_text,fr->filesize); fr->read_text = read_text; }else { //my_mmap(filename, fd, fr); diff -r bd5152f8fe3a -r c228dbede5df example/fileread/task_init.cc --- a/example/fileread/task_init.cc Fri Jan 17 10:21:08 2014 +0900 +++ b/example/fileread/task_init.cc Sun Jan 19 21:39:52 2014 +0900 @@ -4,7 +4,7 @@ /* 必ずこの位置に書いて */ SchedExternTask(Read_task); SchedExternTask(Print_task); -SchedExternTask(RUN_BLOCKS); +SchedExternTask(RUN_READ_BLOCKS); SchedExternTask(MMAP); /** @@ -18,6 +18,6 @@ { SchedRegister(Read_task); SchedRegister(Print_task); - SchedRegister(RUN_BLOCKS); + SchedRegister(RUN_READ_BLOCKS); SchedRegister(MMAP); }