From f9208675791929a4aac641d1be82543e46243b42 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 17 May 2008 11:23:37 -0500 Subject: [PATCH] Build mipmap peaks in capture IO thread, but don't wait on it to finish. May be incorrect. --- Timeline/Peaks.C | 6 ++++-- Timeline/Record_DS.C | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Timeline/Peaks.C b/Timeline/Peaks.C index f27152e..d09d1a5 100644 --- a/Timeline/Peaks.C +++ b/Timeline/Peaks.C @@ -574,8 +574,10 @@ Peaks::finish_writing ( void ) _peak_writer = NULL; /* now fill in the rest of the cache */ - if ( ! fork() ) - exit( make_peaks_mipmap() ); + make_peaks_mipmap(); +/* if ( ! fork() ) */ +/* exit( make_peaks_mipmap() ); */ + } /* THREAD: IO */ diff --git a/Timeline/Record_DS.C b/Timeline/Record_DS.C index 1968615..b4ff69d 100644 --- a/Timeline/Record_DS.C +++ b/Timeline/Record_DS.C @@ -182,6 +182,8 @@ Record_DS::disk_thread ( void ) #ifndef AVOID_UNNECESSARY_COPYING delete[] cbuf; #endif + + _thread = NULL; }