*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* functions into the gr.msg_queue wrapper class, so that everything
* appears normal. (An evil laugh is heard in the distance...)
*/
* functions into the gr.msg_queue wrapper class, so that everything
* appears normal. (An evil laugh is heard in the distance...)
*/
gr_message_sptr gr_py_msg_queue__delete_head(gr_msg_queue_sptr q) {
gr_message_sptr msg;
Py_BEGIN_ALLOW_THREADS; // release global interpreter lock
gr_message_sptr gr_py_msg_queue__delete_head(gr_msg_queue_sptr q) {
gr_message_sptr msg;
Py_BEGIN_ALLOW_THREADS; // release global interpreter lock
q->insert_tail(msg); // possibly blocking call
Py_END_ALLOW_THREADS; // acquire global interpreter lock
}
q->insert_tail(msg); // possibly blocking call
Py_END_ALLOW_THREADS; // acquire global interpreter lock
}