diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-01-29 22:14:12 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-01-29 22:14:12 +0100 |
commit | 4467e518e963135c0e827e889d242cdce9164b52 (patch) | |
tree | adcbe523a513a9e64bc4dbdd6735f9630ebbf5f5 /src/blogc-make | |
parent | e01115702ad73c32efdf11b97d84a81f59300e1d (diff) | |
download | blogc-feature/thread-pool.tar.gz blogc-feature/thread-pool.tar.bz2 blogc-feature/thread-pool.zip |
Diffstat (limited to 'src/blogc-make')
-rw-r--r-- | src/blogc-make/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/blogc-make/main.c b/src/blogc-make/main.c index 96a145b..02ab3b5 100644 --- a/src/blogc-make/main.c +++ b/src/blogc-make/main.c @@ -50,6 +50,8 @@ print_usage(void) } + +#include "../common/thread-pool.h" int #ifdef MAKE_EMBEDDED bm_main(int argc, char **argv) @@ -58,6 +60,11 @@ main(int argc, char **argv) #endif { setlocale(LC_ALL, ""); + bc_threadpool_t *tp = bc_threadpool_new(NULL, 20, NULL, NULL); + bc_threadpool_append(tp, "bola"); + bc_threadpool_append(tp, "guda"); + sleep(10); + return 0; int rv = 0; bc_error_t *err = NULL; |