From bf1f10e1fefa2b342c1f10ccc8863e800eb1870b Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Mon, 18 Oct 2010 12:50:21 -0600 Subject: don't stub out ensure_py_gil_state, ifdef it out as it's python specific --- gnuradio-core/src/lib/general/gr_feval.i | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gnuradio-core/src/lib') 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(); } }; -- cgit