Mercurial > hg > Game > Cerium
comparison example/regex_mas/main.cc @ 1950:1f297d3eacb1 draft
fix bugs
author | masa |
---|---|
date | Thu, 06 Feb 2014 17:55:06 +0900 |
parents | f3e9f811c387 |
children | 30b95f372a0d |
comparison
equal
deleted
inserted
replaced
1949:f3e9f811c387 | 1950:1f297d3eacb1 |
---|---|
251 | 251 |
252 HTaskPtr r_read = NULL; | 252 HTaskPtr r_read = NULL; |
253 | 253 |
254 if (divide_read_flag != 0) { | 254 if (divide_read_flag != 0) { |
255 printf("[divide read mode]\n"); | 255 printf("[divide read mode]\n"); |
256 w->file_mmap = (char*)manager->allocate(sizeof(w->read_filesize)); | 256 w->file_mmap = (char*)manager->allocate(w->read_filesize); |
257 }else { | 257 }else { |
258 printf("[mmap mode]\n"); | 258 printf("[mmap mode]\n"); |
259 r_read = manager->create_task(MMAP , (memaddr)&w->self, sizeof(memaddr),0,0); | 259 r_read = manager->create_task(MMAP , (memaddr)&w->self, sizeof(memaddr),0,0); |
260 r_read->spawn(); | 260 r_read->spawn(); |
261 } | 261 } |