aboutsummaryrefslogtreecommitdiff
path: root/src/reintegrate.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-11 17:51:03 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:19 +0100
commit38ab00ccb6869318f1a12a96443fa6c23de1f6e7 (patch)
tree096d834513a8d61a4e6e94b93086e052c37ccbf5 /src/reintegrate.c
parent5c198c0e6812f55be6283e12af0b09100edb38bf (diff)
First part of stream rework
Diffstat (limited to 'src/reintegrate.c')
-rw-r--r--src/reintegrate.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/reintegrate.c b/src/reintegrate.c
index 67e7b347..fcffd499 100644
--- a/src/reintegrate.c
+++ b/src/reintegrate.c
@@ -140,15 +140,14 @@ static void process_image(void *pg, int cookie)
reflections = find_projected_peaks(&image, image.indexed_cell,
0, 0.1);
- output_intensities(&image, image.indexed_cell, reflections,
- pargs->output_mutex,
- pargs->config_polar,
- pargs->config_closer,
- pargs->ofh);
-
reflist_free(reflections);
}
+ pthread_mutex_lock(pargs->output_mutex);
+ write_chunk(pargs->ofh, &image, pargs->stream_flags);
+ pthread_mutex_unlock(pargs->output_mutex);
+
+
free(image.data);
if ( image.flags != NULL ) free(image.flags);
hdfile_close(hdfile);