From edf2ad46f4c0f403b90d3058018a295baa9d0753 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 18 Jun 2015 13:46:01 +0200 Subject: Replace semaphore with a mutex A mutex (in a shared memory segment) is the correct synchronisation primitive here. I had confused myself... --- src/process_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/process_image.h') 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 */ -- cgit v1.2.3