Skip to content
Snippets Groups Projects
Commit 82bc3b80 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add logging to the threadpool test.

parent 6dbbaee1
No related branches found
No related tags found
1 merge request!375Threadpool task plots
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <unistd.h> #include <unistd.h>
// Local includes. // Local includes.
#include "../config.h"
#include "../src/atomic.h" #include "../src/atomic.h"
#include "../src/threadpool.h" #include "../src/threadpool.h"
...@@ -78,6 +79,11 @@ int main(int argc, char *argv[]) { ...@@ -78,6 +79,11 @@ int main(int argc, char *argv[]) {
threadpool_map(&tp, map_function_first, data, N, sizeof(int), 2, NULL); threadpool_map(&tp, map_function_first, data, N, sizeof(int), 2, NULL);
} }
/* If logging was enabled, dump the log. */
#ifdef SWIFT_DEBUG_THREADPOOL
threadpool_dump_log(&tp, "threadpool_log.txt", 1);
#endif
/* Be clean */ /* Be clean */
threadpool_clean(&tp); threadpool_clean(&tp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment