We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 769e8c1 commit 07d0d98Copy full SHA for 07d0d98
src/print_mutex.h
@@ -9,3 +9,13 @@ inline tbb::mutex& get_print_mutex() {
9
}
10
11
#endif // PRINT_MUTEX_H
12
+
13
+// Add this header to the parallel code you wish to print from
14
+// + the below code to print in parallel code:
15
+//
16
+// {
17
+// tbb::mutex::scoped_lock lock(get_print_mutex());
18
+// std::cout
19
+// << "print "
20
+// << std::endl;
21
+// }
0 commit comments