diff options
author | Rob Savoye | 2010-10-18 12:50:21 -0600 |
---|---|---|
committer | Eric Blossom | 2010-11-10 12:10:45 -0800 |
commit | bf1f10e1fefa2b342c1f10ccc8863e800eb1870b (patch) | |
tree | f22970282927b8b38c6660818384a62900a6bd9a /gnuradio-core/src/lib | |
parent | 1366ce59314bb24825715a1a041b63081b5181e2 (diff) | |
download | gnuradio-bf1f10e1fefa2b342c1f10ccc8863e800eb1870b.tar.gz gnuradio-bf1f10e1fefa2b342c1f10ccc8863e800eb1870b.tar.bz2 gnuradio-bf1f10e1fefa2b342c1f10ccc8863e800eb1870b.zip |
don't stub out ensure_py_gil_state, ifdef it out as it's python specific
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_feval.i | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_feval.i b/gnuradio-core/src/lib/general/gr_feval.i index 9a1269375..843ca3f2a 100644 --- a/gnuradio-core/src/lib/general/gr_feval.i +++ b/gnuradio-core/src/lib/general/gr_feval.i @@ -80,13 +80,14 @@ public: #endif #ifdef SWIGGUILE +#if 0 // FIXME: this is a bogus stub, just here so things build class ensure_py_gil_state { public: ensure_py_gil_state() { } ~ensure_py_gil_state() { } }; - +#endif #warning "class ensure_py_gil_state needs to be implemented!" #endif @@ -157,7 +158,9 @@ class gr_py_feval_dd : public gr_feval_dd public: double calleval(double x) { +#ifdef PYTHON ensure_py_gil_state _lock; +#endif return eval(x); } }; @@ -167,7 +170,9 @@ class gr_py_feval_cc : public gr_feval_cc public: gr_complex calleval(gr_complex x) { +#ifdef PYTHON ensure_py_gil_state _lock; +#endif return eval(x); } }; @@ -177,7 +182,9 @@ class gr_py_feval_ll : public gr_feval_ll public: long calleval(long x) { +#ifdef PYTHON ensure_py_gil_state _lock; +#endif return eval(x); } }; @@ -187,7 +194,9 @@ class gr_py_feval : public gr_feval public: void calleval() { +#ifdef PYTHON ensure_py_gil_state _lock; +#endif eval(); } }; |