MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / set_state

Method set_state

tests/DCPS/ThreadStatusManager/main.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void set_state(TestThreadState state)
60 {
61 ACE_Guard<ACE_Thread_Mutex> guard(mutex_);
62 // Currently, state progression progresses precisely by one each time
63 if (state != state_ + 1) {
64 ACE_ERROR((LM_ERROR, "(%P|%t) TestThread::set_state: Unexpected state '%d' when current state is '%d'\n", state, state_));
65 throw false;
66 }
67 const bool notify = state != state_;
68 state_ = state;
69 if (notify) {
70 cv_.broadcast();
71 }
72 }
73
74private:
75 int svc()

Callers 1

read_statusFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected