summaryrefslogtreecommitdiff
path: root/gruel/src
diff options
context:
space:
mode:
authorJohnathan Corgan2009-08-01 09:43:02 -0700
committerEric Blossom2009-08-13 21:40:08 -0700
commitf67c4ff12f19490d2aeab7ff0fbe0484195037f0 (patch)
tree33c9c2f4931c46a8e4f97bba7977189f3c7e448e /gruel/src
parentf15982950e4674f0cad53d25d36409253661af34 (diff)
downloadgnuradio-f67c4ff12f19490d2aeab7ff0fbe0484195037f0.tar.gz
gnuradio-f67c4ff12f19490d2aeab7ff0fbe0484195037f0.tar.bz2
gnuradio-f67c4ff12f19490d2aeab7ff0fbe0484195037f0.zip
Added gr_msg_accepter class.
gr_msg_accepter derives from gruel::msg_accepter_msgq and will implement in its post() a notification of the destination block thread that a message is pending. Passes distcheck.
Diffstat (limited to 'gruel/src')
-rw-r--r--gruel/src/include/gruel/msg_accepter_msgq.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gruel/src/include/gruel/msg_accepter_msgq.h b/gruel/src/include/gruel/msg_accepter_msgq.h
index b14049d54..bf1762e92 100644
--- a/gruel/src/include/gruel/msg_accepter_msgq.h
+++ b/gruel/src/include/gruel/msg_accepter_msgq.h
@@ -32,13 +32,14 @@ namespace gruel {
*/
class msg_accepter_msgq : public msg_accepter
{
+ protected:
msg_queue_sptr d_msg_queue;
public:
msg_accepter_msgq(msg_queue_sptr msgq);
~msg_accepter_msgq();
- void post(pmt::pmt_t msg);
+ virtual void post(pmt::pmt_t msg);
msg_queue_sptr msg_queue() const { return d_msg_queue; }
};