From 9405ad97e20686f74c06bcbac9523a8b4f10272e Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 30 Sep 2017 17:58:18 +0200 Subject: lib: Cancel tpm threads instead of marking exit This makes the threadpool use pthread_cancel instead of setting an exit flag that threadpool managed threads check periodically. This drastically reduces CPU consumption in the irmd when running a lot of applications. It requires cancellation handlers in the ipcp and irmd to be implemented to ensure safe cancellation during operation and shutdown. --- include/ouroboros/tpm.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') diff --git a/include/ouroboros/tpm.h b/include/ouroboros/tpm.h index 74e45035..f472cb8e 100644 --- a/include/ouroboros/tpm.h +++ b/include/ouroboros/tpm.h @@ -38,10 +38,6 @@ int tpm_start(struct tpm * tpm); void tpm_stop(struct tpm * tpm); -bool tpm_check(struct tpm * tpm); - -void tpm_exit(struct tpm * tpm); - void tpm_dec(struct tpm * tpm); void tpm_inc(struct tpm * tpm); -- cgit v1.2.3