Skip to content

Commit 40b7dce

Browse files
committed
..
1 parent c31799f commit 40b7dce

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cpp.boost/active.object/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,4 @@ link_directories (
2121
/opt/homebrew/lib
2222
)
2323

24-
target_link_libraries (
25-
Boost::thread
26-
)
27-
2824
add_executable (active.object ${SOURCES})

cpp.boost/active.object/active.object.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ int main(int argc, char* argv[])
1414
cout << "now start...\n";
1515

1616
o.post([] { cout << "hello world first " << endl; });
17-
o.dispatch([] { cout << "hello world second" << endl; });
17+
cout << "in between 1 ...\n";
18+
cout << "in between 2 ...\n";
19+
cout << "in between 3 ...\n";
20+
o.post([] { cout << "hello world second" << endl; });
21+
//o.dispatch([] { cout << "hello world second" << endl; });
1822

1923
this_thread::sleep_for(1s);
2024

0 commit comments

Comments
 (0)