Skip to content

Commit 75f935d

Browse files
committed
Update thread_pool2.cpp
1 parent f1de0f9 commit 75f935d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/xtd.core.examples/threading/thread_pool2/src/thread_pool2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ auto main() -> int {
1313
println("({} {}) -> sleep(200_ms)", thread::current_thread().name(), thread::current_thread().managed_thread_id());
1414
thread::sleep(200_ms);
1515
println("({} {}) -> join all threads of thread_pool", thread::current_thread().name(), thread::current_thread().managed_thread_id());
16-
thread_pool::join_all();
16+
thread_pool::close();
1717
println("({} {}) -> stop", thread::current_thread().name(), thread::current_thread().managed_thread_id());
1818
}
1919

0 commit comments

Comments
 (0)