summaryrefslogtreecommitdiff
path: root/mblock/src/lib/mb_msg_accepter.h
diff options
context:
space:
mode:
authoreb2007-01-29 00:10:51 +0000
committereb2007-01-29 00:10:51 +0000
commita6db1d097d7be5e562c07f60a1ff711bddc5e99c (patch)
tree28e454b14c23b4cfc991fafad0e9d9d183d7d7de /mblock/src/lib/mb_msg_accepter.h
parentf8af5803ca8b87aa6c5f8c97d5abbabe2b837619 (diff)
downloadgnuradio-a6db1d097d7be5e562c07f60a1ff711bddc5e99c.tar.gz
gnuradio-a6db1d097d7be5e562c07f60a1ff711bddc5e99c.tar.bz2
gnuradio-a6db1d097d7be5e562c07f60a1ff711bddc5e99c.zip
Merged mblock work-in-progress (eb/mb r4273:4312) into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4313 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'mblock/src/lib/mb_msg_accepter.h')
-rw-r--r--mblock/src/lib/mb_msg_accepter.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/mblock/src/lib/mb_msg_accepter.h b/mblock/src/lib/mb_msg_accepter.h
new file mode 100644
index 000000000..4f39fda61
--- /dev/null
+++ b/mblock/src/lib/mb_msg_accepter.h
@@ -0,0 +1,48 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2007 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * 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
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+#ifndef INCLUDED_MB_MSG_ACCEPTER_H
+#define INCLUDED_MB_MSG_ACCEPTER_H
+
+#include <mb_common.h>
+
+/*!
+ * \brief Abstract class that accepts messages
+ *
+ * The mb_port::send method ultimately resolves the (local)
+ * destination of a send to an object of this type. The resulting
+ * object is called to deliver the message.
+ *
+ * Expect derived classes such as these:
+ *
+ * smp : target is visible in this address space
+ * mpi : target is on the other end of an MPI link
+ * ppe->spe : sending from Cell PPE to Cell SPE
+ * spe->ppe : sending from Cell SPE to Cell PPE
+ */
+class mb_msg_accepter {
+public:
+ mb_msg_accepter(){};
+ virtual ~mb_msg_accepter();
+
+ virtual void operator()(pmt_t signal, pmt_t data, pmt_t metadata, mb_pri_t priority) = 0;
+};
+
+#endif /* INCLUDED_MB_MSG_ACCEPTER_H */