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

Function runClient

test/common/unit_test_arbitrator_app1.cpp:86–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void runClient(void *arg)
87{
88 ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
89
90 // wait until ERPC first (client) app will announce that it is ready.
91 while (waitClient == 0)
92 {
93 Thread::sleep(10000);
94 }
95
96 // wait until ERPC first (client) app will announce ready to quit state
97 while (true)
98 {
99 isTestPassing = testClient();
100 {
101 Thread::sleep(10000);
102 Mutex::Guard lock(waitQuitMutex);
103 if (waitQuit != 0 || isTestPassing != 0 || stopTest != 0)
104 {
105 enableFirstSide();
106 break;
107 }
108 }
109 }
110
111 while (true)
112 {
113 Thread::sleep(100000);
114 Mutex::Guard lock(waitQuitMutex);
115 if (waitQuit != 0)
116 {
117 break;
118 }
119 }
120
121 // send to ERPC first (client) app ready to quit state
122 quitSecondInterfaceServer();
123 increaseWaitQuit();
124 vTaskSuspend(NULL);
125}
126
127static void SignalReady(void)
128{

Callers

nothing calls this directly

Calls 4

enableFirstSideFunction · 0.85
testClientFunction · 0.70
increaseWaitQuitFunction · 0.70

Tested by

no test coverage detected