diff options
author | 2015-10-26 18:13:29 +0200 | |
---|---|---|
committer | 2015-10-26 18:13:29 +0200 | |
commit | 74ddabf488dda9e39497e871241bdbea9536719a (patch) | |
tree | ee18dd789bdf2282044eac9aa3b136f0bb45e304 /src/msg_manager.h | |
parent | b77fef12a08d6d964e522eea6b2d846dfcc98b08 (diff) | |
parent | 587f97686900f757b173469a2b231ede6705c568 (diff) |
Merge branch 'rpc_intg1' of csi-sceasr-b45:/auto/proj-pcube-b/apps/PL-b/tools/repo//trex-core into rpc_intg1
Diffstat (limited to 'src/msg_manager.h')
-rwxr-xr-x | src/msg_manager.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/msg_manager.h b/src/msg_manager.h index b25660bb..6308eb1b 100755 --- a/src/msg_manager.h +++ b/src/msg_manager.h @@ -23,6 +23,7 @@ limitations under the License. #include "CRing.h" +#include <string> /* messages from CP->DP Ids */ @@ -71,7 +72,7 @@ public: m_dp_to_cp=0; m_num_dp_threads=0; } - bool Create(uint8_t num_dp_threads); + bool Create(uint8_t num_dp_threads,std::string name); void Delete(); CNodeRing * getRingCpToDp(uint8_t thread_id); CNodeRing * getRingDpToCp(uint8_t thread_id); @@ -94,12 +95,18 @@ public: CMessagingManager * getRxDp(){ return (&m_rx_dp); } + CMessagingManager * getCpDp(){ + return (&m_cp_dp); + } + uint8_t get_num_threads(){ return (m_rx_dp.get_num_threads()); } private: CMessagingManager m_rx_dp; + CMessagingManager m_cp_dp; + private: /* one instance */ |