MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / runClient

Function runClient

test/common/unit_test_tcp_arbitrator_server.cpp:74–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void runClient(void *arg)
75{
76 // wait until ERPC first (client) app will announce that it is ready.
77 while (waitClient == 0)
78 {
79 }
80
81 // wait until ERPC first (client) app will announce ready to quit state
82 while (true)
83 {
84 isTestPassing = testClient();
85 {
86 Mutex::Guard lock(waitQuitMutex);
87 if (waitQuit != 0 || isTestPassing != 0 || stopTest != 0)
88 {
89 enableFirstSide();
90 break;
91 }
92 }
93 }
94
95 while (true)
96 {
97 Mutex::Guard lock(waitQuitMutex);
98 if (waitQuit != 0)
99 {
100 break;
101 }
102 }
103
104 // send to ERPC first (client) app ready to quit state
105 quitSecondInterfaceServer();
106
107 increaseWaitQuit();
108}
109
110////////////////////////////////////////////////////////////////////////////////
111// Set up global fixture

Callers

nothing calls this directly

Calls 4

enableFirstSideFunction · 0.85
testClientFunction · 0.70
increaseWaitQuitFunction · 0.70

Tested by

no test coverage detected