Mercurial > hg > Game > Cerium
changeset 2019:630eef931336 draft
add read type flag " BLOCKED_MMAP "
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Jun 2014 14:17:39 +0900 |
parents | faaea4e1ce1c |
children | 8130b38b5391 |
files | example/word_count/Func.h example/word_count/main.cc |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/example/word_count/Func.h Wed Jun 11 17:22:17 2014 +0900 +++ b/example/word_count/Func.h Tue Jun 17 14:17:39 2014 +0900 @@ -13,6 +13,7 @@ MY_MMAP, MY_READ, BLOCKED_READ, + BLOCKED_MMAP, }; #define DATA_NUM 16
--- a/example/word_count/main.cc Wed Jun 11 17:22:17 2014 +0900 +++ b/example/word_count/main.cc Tue Jun 17 14:17:39 2014 +0900 @@ -325,6 +325,9 @@ }else if(read_type == MY_MMAP) { printf("[mmap mode]\n"); my_mmap(filename, w); + }else if(read_type == BLOCKED_MMAP) { + printf("[blocked mmap mode]\n"); + my_mmap(filename, w); } HTaskPtr t_print;