From 3d5760a361a1fcbfb6594aeae7ef775a4cc3ede2 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 27 Aug 2009 10:08:49 -0700 Subject: [PATCH] don't bother with the plot thread if we're not streaming Ignore-this: d748c070654b61db45e27490428df154 darcs-hash:20090827170849-0cb85-e6e0499441f19560a8f6fbf10fadd5060f659a03.gz --- driveGnuPlots.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driveGnuPlots.pl b/driveGnuPlots.pl index 918436c..a9c243d 100755 --- a/driveGnuPlots.pl +++ b/driveGnuPlots.pl @@ -73,7 +73,7 @@ my $xwindow = $options{"xlen"}; # now start the data acquisition and plotting threads my $dataQueue = Thread::Queue->new(); my $addThr = threads->create(\&mainThread); -my $plotThr = threads->create(\&plotThread); +my $plotThr = threads->create(\&plotThread) if(!$options{"stream"}); while(<>) { @@ -84,7 +84,7 @@ $dataQueue->enqueue("Plot now"); $dataQueue->enqueue(undef); $addThr->join(); -$plotThr->join(); +$plotThr->join() if(!$options{"stream"});