aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integration.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-06-18 13:46:01 +0200
committerThomas White <taw@physics.org>2015-06-18 13:47:09 +0200
commitedf2ad46f4c0f403b90d3058018a295baa9d0753 (patch)
tree059e668a733ec62f55137c8eb702075821e427d3 /libcrystfel/src/integration.h
parent14d8651e663538be7445e74cef9206ce9ab4cf36 (diff)
Replace semaphore with a mutex
A mutex (in a shared memory segment) is the correct synchronisation primitive here. I had confused myself...
Diffstat (limited to 'libcrystfel/src/integration.h')
-rw-r--r--libcrystfel/src/integration.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libcrystfel/src/integration.h b/libcrystfel/src/integration.h
index 7414f818..a012fc14 100644
--- a/libcrystfel/src/integration.h
+++ b/libcrystfel/src/integration.h
@@ -33,8 +33,6 @@
#include <config.h>
#endif
-#include <semaphore.h>
-
#include "geometry.h"
/**
@@ -128,7 +126,7 @@ extern void integrate_all_4(struct image *image, IntegrationMethod meth,
double ir_inn, double ir_mid, double ir_out,
IntDiag int_diag,
signed int idh, signed int idk, signed int idl,
- sem_t *term_sem);
+ pthread_mutex_t *term_lock);
#ifdef __cplusplus