Skip to content

Commit

Permalink
Synced chapter05 recipe 7 part2
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed May 1, 2017
1 parent 24f80b8 commit 465a42c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Chapter05/07_interruptions/main.cpp
Expand Up @@ -25,9 +25,12 @@ int main() {

void do_parse() {
while (not_end_of_parsing) {
// If current thread was interrupted, the following
// line will throw an boost::thread_interrupted.
boost::this_thread::interruption_point();
// Some parsing goes here

// Some parsing goes here.
// ...
}

// Newer shall reach this code
Expand Down

0 comments on commit 465a42c

Please sign in to comment.