diff options
author | Thomas White <taw@physics.org> | 2015-06-17 14:03:55 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-06-17 14:10:45 +0200 |
commit | 14d8651e663538be7445e74cef9206ce9ab4cf36 (patch) | |
tree | c3c49e07d2800d028af684adcade95b52ec629de /src/process_image.c | |
parent | 031a4d37cf355fd72a991dbd1167c8e492011730 (diff) |
Use a POSIX semaphore for synchronising terminal access during indexing
Nice side-effect: indexamajig -j and --int-diag can now be used together
Diffstat (limited to 'src/process_image.c')
-rw-r--r-- | src/process_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process_image.c b/src/process_image.c index 1a5a3477..5ead2c61 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -78,7 +78,7 @@ static void try_refine_autoR(struct image *image, Crystal *cr) void process_image(const struct index_args *iargs, struct pattern_args *pargs, Stream *st, int cookie, const char *tmpdir, int results_pipe, - int serial) + int serial, sem_t *term_sem) { float *data_for_measurement; size_t data_size; @@ -260,7 +260,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, iargs->ir_inn, iargs->ir_mid, iargs->ir_out, iargs->int_diag, iargs->int_diag_h, iargs->int_diag_k, iargs->int_diag_l, - results_pipe); + term_sem); ret = write_chunk(st, &image, hdfile, iargs->stream_peaks, iargs->stream_refls, |