Changeset 7659
- Timestamp:
- 02/13/08 11:55:29
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block.i
r6787 r7659 41 41 ~gr_top_block(); 42 42 43 void start() ;43 void start() throw (std::runtime_error); 44 44 void stop(); 45 45 void wait(); 46 46 void run(); 47 47 void lock(); 48 void unlock() ;48 void unlock() throw (std::runtime_error); 49 49 bool is_running(); 50 50 }; gnuradio/branches/releases/3.1/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
r6201 r7659 78 78 { 79 79 if (s_impl) 80 throw std::logic_error("gr_top_block_impl: multiple simultaneous gr_top_block 's");80 throw std::logic_error("gr_top_block_impl: multiple simultaneous gr_top_blocks not allowed"); 81 81 82 82 s_impl = this; … … 96 96 97 97 if (d_running) 98 throw std::runtime_error(" already running");98 throw std::runtime_error("top block already running or wait() not called after previous stop()"); 99 99 100 100 // Create new flat flow graph by flattening hierarchy … … 204 204 205 205 if (!d_running) 206 throw std::runtime_error(" not running");206 throw std::runtime_error("top block is not running"); 207 207 208 208 // Stop scheduler threads and wait for completion
