diff options
author | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2007-05-05 18:26:33 +0000 |
---|---|---|
committer | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2007-05-05 18:26:33 +0000 |
commit | b37d879f6b46225fab22862f193f10d1908400e1 (patch) | |
tree | 2e5816d582b4e19806cce8652dc298d7ede823ce /gnuradio-core/src/lib/runtime/gr_runtime.h | |
parent | 6b1e25d6c62d82369548ecad4b86a0795be23025 (diff) |
Merged r5241:5242 from jcorgan/reconf into trunk. Trunk passes distcheck.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5243 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_runtime.h')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_runtime.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_runtime.h b/gnuradio-core/src/lib/runtime/gr_runtime.h index 5aec6dcf06..23bdfaa784 100644 --- a/gnuradio-core/src/lib/runtime/gr_runtime.h +++ b/gnuradio-core/src/lib/runtime/gr_runtime.h @@ -80,6 +80,26 @@ public: * recreates new threads (possibly a different number from before.) */ void restart(); + + /*! + * Lock a flow graph in preparation for reconfiguration. When an equal + * number of calls to lock() and unlock() have occurred, the flow graph + * will be restarted automatically. + * + * N.B. lock() and unlock() cannot be called from a flow graph thread or + * deadlock will occur when reconfiguration happens. + */ + void lock(); + + /*! + * Lock a flow graph in preparation for reconfiguration. When an equal + * number of calls to lock() and unlock() have occurred, the flow graph + * will be restarted automatically. + * + * N.B. lock() and unlock() cannot be called from a flow graph thread or + * deadlock will occur when reconfiguration happens. + */ + void unlock(); }; #endif /* INCLUDED_GR_RUNTIME_H */ |