diff options
author | Thomas White <taw@physics.org> | 2015-06-18 13:46:01 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-06-18 13:47:09 +0200 |
commit | edf2ad46f4c0f403b90d3058018a295baa9d0753 (patch) | |
tree | 059e668a733ec62f55137c8eb702075821e427d3 /src/process_image.h | |
parent | 14d8651e663538be7445e74cef9206ce9ab4cf36 (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 'src/process_image.h')
-rw-r--r-- | src/process_image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process_image.h b/src/process_image.h index 6e44c173..d982c4f0 100644 --- a/src/process_image.h +++ b/src/process_image.h @@ -104,7 +104,7 @@ struct pattern_args extern void process_image(const struct index_args *iargs, struct pattern_args *pargs, Stream *st, int cookie, const char *tmpdir, int results_pipe, - int serial, sem_t *term_sem); + int serial, pthread_mutex_t *term_lock); #endif /* PROCESS_IMAGEs_H */ |