# HG changeset patch # User Masataka Kohagura # Date 1402982259 -32400 # Node ID 630eef931336b02cb15ba37511bdc68a171dfda9 # Parent faaea4e1ce1c5ba31668b95371d1ece40f2b47b9 add read type flag " BLOCKED_MMAP " diff -r faaea4e1ce1c -r 630eef931336 example/word_count/Func.h --- 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 diff -r faaea4e1ce1c -r 630eef931336 example/word_count/main.cc --- 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;