diff options
Diffstat (limited to 'libcrystfel/src/thread-pool.h')
-rw-r--r-- | libcrystfel/src/thread-pool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcrystfel/src/thread-pool.h b/libcrystfel/src/thread-pool.h index 7f07f78d..5a305d5d 100644 --- a/libcrystfel/src/thread-pool.h +++ b/libcrystfel/src/thread-pool.h @@ -36,6 +36,10 @@ #include <pthread.h> +#ifdef __cplusplus +extern "C" { +#endif + extern pthread_mutex_t stderr_lock; extern signed int get_status_label(void); @@ -83,5 +87,8 @@ extern int run_threads(int n_threads, TPWorkFunc work, void *queue_args, int max, int cpu_num, int cpu_groupsize, int cpu_offset); +#ifdef __cplusplus +} +#endif #endif /* THREAD_POOL_H */ |