add signal handler w/ debug info

This commit is contained in:
2021-05-08 16:23:24 -04:00
parent 523c123e2e
commit 22dd58e140
7 changed files with 105 additions and 4 deletions

View File

@@ -10,10 +10,12 @@ typedef void (*thread_func_t)(void *arg);
tpool_t *tpool_create(size_t num, void (*cleanup_func)(), int free_arg);
void tpool_start(tpool_t *pool);
void tpool_destroy(tpool_t *tm);
void tpool_destroy(tpool_t *pool);
int tpool_add_work(tpool_t *pool, thread_func_t func, void *arg);
void tpool_wait(tpool_t *tm);
void tpool_wait(tpool_t *pool);
void tpool_dump_debug_info(tpool_t *pool);
#endif