diff options
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_runtime.i')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_runtime.i | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_runtime.i b/gnuradio-core/src/lib/runtime/gr_runtime.i index 3a8b7e0b6e..10e757baaf 100644 --- a/gnuradio-core/src/lib/runtime/gr_runtime.i +++ b/gnuradio-core/src/lib/runtime/gr_runtime.i @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004,2006 Free Software Foundation, Inc. + * Copyright 2004,2006,2007 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -36,6 +36,7 @@ public: void start() throw (std::runtime_error); void stop() throw (std::runtime_error); void wait() throw (std::runtime_error); + void restart() throw (std::runtime_error); }; %{ @@ -72,4 +73,10 @@ void runtime_wait_unlocked(gr_runtime_sptr r) throw (std::runtime_error) r->wait(); } +void runtime_restart_unlocked(gr_runtime_sptr r) throw (std::runtime_error) +{ + ensure_py_gil_state2 _lock; + r->restart(); +} + %} |