summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorJosh Blum2013-05-10 16:41:46 -0700
committerJosh Blum2013-05-10 16:41:46 -0700
commit7c193faac2c3737924a67c1e9b87f50e54724dd9 (patch)
tree3fd9a4f0a97fcb6f54cc01d44667c7518831ec80 /gnuradio-core/src
parent14502c92752098e773187890b89db8c763a1ecda (diff)
downloadgnuradio-7c193faac2c3737924a67c1e9b87f50e54724dd9.tar.gz
gnuradio-7c193faac2c3737924a67c1e9b87f50e54724dd9.tar.bz2
gnuradio-7c193faac2c3737924a67c1e9b87f50e54724dd9.zip
gras: need some backward compat hooks for scope sink gui
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/__init__.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/__init__.py b/gnuradio-core/src/python/gnuradio/gr/__init__.py
index dab555052..49d33ebf0 100644
--- a/gnuradio-core/src/python/gnuradio/gr/__init__.py
+++ b/gnuradio-core/src/python/gnuradio/gr/__init__.py
@@ -33,10 +33,22 @@ from tag_utils import tag_to_python, tag_to_pmt
import gras
+RT_OK = 1
+
+def enable_realtime_scheduling():
+ #will have this in a theron update
+ return 0
+
class top_block(gras.TopBlock):
def __init__(self, name="Top"):
gras.TopBlock.__init__(self, name)
+ def lock(self):
+ pass
+
+ def unlock(self):
+ self.commit()
+
class hier_block2(gras.HierBlock):
def __init__(self, name="Hier", in_sig=None, out_sig=None):
gras.HierBlock.__init__(self, name)
@@ -48,6 +60,12 @@ class hier_block2(gras.HierBlock):
import weakref
self._hb = weakref.proxy(self)
+ def lock(self):
+ pass
+
+ def unlock(self):
+ self.commit()
+
def input_signature(self): return self.__in_sig
def output_signature(self): return self.__out_sig