commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7659 - gnuradio/branches/releases/3.1/gnuradio-core/s


From: jcorgan
Subject: [Commit-gnuradio] r7659 - gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime
Date: Wed, 13 Feb 2008 11:55:29 -0700 (MST)

Author: jcorgan
Date: 2008-02-13 11:55:29 -0700 (Wed, 13 Feb 2008)
New Revision: 7659

Modified:
   gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block.i
   
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
Log:
Applied changeset r7565 on trunk to release branch.

Modified: 
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block.i
===================================================================
--- gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block.i 
2008-02-13 18:51:19 UTC (rev 7658)
+++ gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block.i 
2008-02-13 18:55:29 UTC (rev 7659)
@@ -40,12 +40,12 @@
 public:
   ~gr_top_block();
 
-  void start();
+  void start() throw (std::runtime_error);
   void stop();
   void wait();
   void run();
   void lock();
-  void unlock();
+  void unlock() throw (std::runtime_error);
   bool is_running();
 };
 

Modified: 
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
===================================================================
--- 
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
   2008-02-13 18:51:19 UTC (rev 7658)
+++ 
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
   2008-02-13 18:55:29 UTC (rev 7659)
@@ -77,7 +77,7 @@
     d_lock_count(0)
 {
   if (s_impl)
-    throw std::logic_error("gr_top_block_impl: multiple simultaneous 
gr_top_block's");
+    throw std::logic_error("gr_top_block_impl: multiple simultaneous 
gr_top_blocks not allowed");
 
   s_impl = this;
 }
@@ -95,7 +95,7 @@
     std::cout << "start: entered" << std::endl;
 
   if (d_running)
-    throw std::runtime_error("already running");
+    throw std::runtime_error("top block already running or wait() not called 
after previous stop()");
 
   // Create new flat flow graph by flattening hierarchy
   d_ffg = d_owner->flatten();
@@ -203,7 +203,7 @@
     std::cout << "restart: entered" << std::endl;
 
   if (!d_running)
-    throw std::runtime_error("not running");
+    throw std::runtime_error("top block is not running");
 
   // Stop scheduler threads and wait for completion
   stop();





reply via email to

[Prev in Thread] Current Thread [Next in Thread]