summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver
diff options
context:
space:
mode:
authormsmit <msmit@remedy.nl>2010-02-08 11:18:25 +0000
committermsmit <msmit@remedy.nl>2010-02-08 11:18:25 +0000
commitaca71f55eaa2704b657977c609fb848f3dbdeafa (patch)
tree95de975fd164ef199165f6a3fb76db01aab0b869 /CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver
parent5c35cd8f650949db1f910e39f719398df2fee63b (diff)
downloadATCD-aca71f55eaa2704b657977c609fb848f3dbdeafa.tar.gz
Mon Feb 8 11:15:00 UTC 2010 Marcel Smit <msmit@remedy.nl>
* connectors/dds4ccm/tests/CSLQoS/Receiver/CSL_QoSTest_Receiver_exec.h: * connectors/dds4ccm/tests/CSLQoS/Receiver/CSL_QoSTest_Receiver_exec.cpp: * connectors/dds4ccm/tests/CSLUnexpStat/Receiver/CSL_USTest_Receiver_exec.h: * connectors/dds4ccm/tests/CSLUnexpStat/Receiver/CSL_USTest_Receiver_exec.cpp: Added test scenario for thread switch. * connectors/dds4ccm/tests/CSLDeadline/Receiver/CSL_DeadlineTest_Receiver_exec.cpp: * connectors/dds4ccm/tests/CSLSampleRejected/Receiver/CSL_SRTest_Receiver_exec.cpp: * connectors/dds4ccm/tests/ListenOneByOne/Receiver/LOBO_Test_Receiver_exec.cpp: * connectors/dds4ccm/tests/PSLSampleLost/Receiver/PSL_SampleLost_Receiver_exec.cpp: * connectors/dds4ccm/tests/SLOneByOne/Receiver/SL_OneByOne_Receiver_exec.cpp: Optimized logging regarding thread switch test.
Diffstat (limited to 'CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver')
-rw-r--r--CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver/CSL_DeadlineTest_Receiver_exec.cpp65
1 files changed, 42 insertions, 23 deletions
diff --git a/CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver/CSL_DeadlineTest_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver/CSL_DeadlineTest_Receiver_exec.cpp
index 887c7d3cf7b..004084982bf 100644
--- a/CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver/CSL_DeadlineTest_Receiver_exec.cpp
+++ b/CIAO/connectors/dds4ccm/tests/CSLDeadline/Receiver/CSL_DeadlineTest_Receiver_exec.cpp
@@ -184,30 +184,49 @@ namespace CIAO_CSL_DeadlineTest_Receiver_Impl
ACE_TEXT ("'on_offered_deadline_missed' in Receiver\n")
));
}
+ if (this->thread_id_listener_.value () == 0)
+ {
+ ACE_ERROR ((LM_ERROR, "ERROR: "
+ "Thread ID for ConnectorStatusListener not set!\n"));
+ }
#if defined (CIAO_DDS4CCM_CONTEXT_SWITCH) && (CIAO_DDS4CCM_CONTEXT_SWITCH == 1)
- if (this->thread_id_listener_.value () == 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: "
- "Thread ID for ConnectorStatusListener not set!\n"));
- }
- else if (ACE_OS::thr_equal (this->thread_id_listener_.value (),
- ACE_Thread::self ()))
- {
- ACE_ERROR ((LM_ERROR, "ERROR: "
- "Thread switch for ConnectorStatusListener "
- "doesn't seem to work! "
- "listener <%u> - component <%u>\n",
- this->thread_id_listener_.value (),
- ACE_Thread::self ()));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "OK : "
- "Thread switch for ConnectorStatusListener seems OK. "
- "listener <%u> - component <%u>\n",
- this->thread_id_listener_.value (),
- ACE_Thread::self ()));
- }
+ else if (ACE_OS::thr_equal (this->thread_id_listener_.value (),
+ ACE_Thread::self ()))
+ {
+ ACE_DEBUG ((LM_DEBUG, "OK : "
+ "Thread switch for ConnectorStatusListener seems OK. "
+ "(DDS uses the CCM thread for its callback) "
+ "listener <%u> - component <%u>\n",
+ this->thread_id_listener_.value (),
+ ACE_Thread::self ()));
+ }
+ else
+ {
+ ACE_ERROR ((LM_ERROR, "ERROR: "
+ "Thread switch for ConnectorStatusListener "
+ "doesn't seem to work! "
+ "listener <%u> - component <%u>\n",
+ this->thread_id_listener_.value (),
+ ACE_Thread::self ()));
+ }
+ #else
+ else if (ACE_OS::thr_equal (this->thread_id_listener_.value (),
+ ACE_Thread::self ()))
+ {
+ ACE_ERROR ((LM_ERROR, "ERROR: ConnectorStatusListener: "
+ "DDS seems to use a CCM thread for its callback: "
+ "listener <%u> - component <%u>\n",
+ this->thread_id_listener_.value (),
+ ACE_Thread::self ()));
+ }
+ else
+ {
+ ACE_DEBUG ((LM_DEBUG, "OK : ConnectorStatusListener: "
+ "DDS seems to use its own thread for its callback: "
+ "listener <%u> - component <%u>\n",
+ this->thread_id_listener_.value (),
+ ACE_Thread::self ()));
+ }
#endif
}