From c81541569a4eb9ad938874bdc87fa77a156dab4b Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 12 Mar 2002 15:59:40 +0000 Subject: [PATCH] fixed scope of temporary objects --- src/libCom/test/epicsTimerExample.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/libCom/test/epicsTimerExample.cpp b/src/libCom/test/epicsTimerExample.cpp index dee90b089..5ae791ac6 100644 --- a/src/libCom/test/epicsTimerExample.cpp +++ b/src/libCom/test/epicsTimerExample.cpp @@ -21,11 +21,13 @@ private: void epicsTimerExample() { epicsTimerQueueActive &queue = epicsTimerQueueActive::allocate(true); - something first("first",queue); - something second("second",queue); + { + something first("first",queue); + something second("second",queue); - first.start(1.0); - second.start(1.5); - epicsThreadSleep(2.0); + first.start(1.0); + second.start(1.5); + epicsThreadSleep(2.0); + } queue.release(); }