summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/runtime
diff options
context:
space:
mode:
authorRob Savoye2010-10-16 08:53:40 -0600
committerEric Blossom2010-11-10 12:10:44 -0800
commit422d912f685b412bdfd91f088628da6f5f8196ba (patch)
treed1d863d266b7536d5c65be980c37bbdc087b5333 /gnuradio-core/src/lib/runtime
parent1caa7d707377d093cf7d9b7e65176848a93bba5c (diff)
downloadgnuradio-422d912f685b412bdfd91f088628da6f5f8196ba.tar.gz
gnuradio-422d912f685b412bdfd91f088628da6f5f8196ba.tar.bz2
gnuradio-422d912f685b412bdfd91f088628da6f5f8196ba.zip
wrap pyrun python code in SWIGPYTHON ifdef so it doesn't appear in other languages
Diffstat (limited to 'gnuradio-core/src/lib/runtime')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i
index 5e9032449..2378a1880 100644
--- a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i
+++ b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i
@@ -42,6 +42,7 @@ class gr_single_threaded_scheduler {
gr_single_threaded_scheduler (const std::vector<gr_block_sptr> &modules);
};
+#ifdef SWIGPYTHON
%inline %{
void sts_pyrun (gr_single_threaded_scheduler_sptr s) {
Py_BEGIN_ALLOW_THREADS; // release global interpreter lock
@@ -49,3 +50,5 @@ class gr_single_threaded_scheduler {
Py_END_ALLOW_THREADS; // acquire global interpreter lock
}
%}
+#endif
+