[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10451 - gnuradio/trunk/gnuradio-core/src/lib/runtime
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r10451 - gnuradio/trunk/gnuradio-core/src/lib/runtime |
Date: |
Tue, 17 Feb 2009 09:57:01 -0700 (MST) |
Author: jcorgan
Date: 2009-02-17 09:57:00 -0700 (Tue, 17 Feb 2009)
New Revision: 10451
Modified:
gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.cc
gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.h
gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.i
gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.h
Log:
Added ability to determine if flowgraph is running
Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.cc
2009-02-17 16:28:38 UTC (rev 10450)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.cc
2009-02-17 16:57:00 UTC (rev 10451)
@@ -78,6 +78,12 @@
wait();
}
+bool
+gr_top_block::is_running()
+{
+ return d_impl->is_running();
+}
+
void
gr_top_block::lock()
{
Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.h
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.h 2009-02-17
16:28:38 UTC (rev 10450)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.h 2009-02-17
16:57:00 UTC (rev 10451)
@@ -78,6 +78,11 @@
void wait();
/*!
+ * Is the flowgraph running?
+ */
+ bool is_running();
+
+ /*!
* Lock a flowgraph in preparation for reconfiguration. When an equal
* number of calls to lock() and unlock() have occurred, the flowgraph
* will be restarted automatically.
Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.i
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.i 2009-02-17
16:28:38 UTC (rev 10450)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block.i 2009-02-17
16:57:00 UTC (rev 10451)
@@ -44,6 +44,7 @@
void stop();
void wait();
void run();
+ bool is_running();
void lock();
void unlock() throw (std::runtime_error);
void dump();
Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
2009-02-17 16:28:38 UTC (rev 10450)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
2009-02-17 16:57:00 UTC (rev 10451)
@@ -87,6 +87,12 @@
d_owner = 0;
}
+bool
+gr_top_block_impl::is_running()
+{
+ return (d_state != IDLE);
+}
+
void
gr_top_block_impl::start()
{
Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.h
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.h
2009-02-17 16:28:38 UTC (rev 10450)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_top_block_impl.h
2009-02-17 16:57:00 UTC (rev 10451)
@@ -60,6 +60,9 @@
// Dump the flowgraph to stdout
void dump();
+
+ // Has flowgraph been started?
+ bool is_running();
protected:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10451 - gnuradio/trunk/gnuradio-core/src/lib/runtime,
jcorgan <=