| 91 | } |
| 92 | |
| 93 | void runClient(void *arg) |
| 94 | { |
| 95 | ulTaskNotifyTake(pdTRUE, portMAX_DELAY); |
| 96 | |
| 97 | // send to ERPC second (server) app message that this app is ready. |
| 98 | whenReady(); |
| 99 | |
| 100 | __attribute__((unused)) int i; |
| 101 | i = RUN_ALL_TESTS(); |
| 102 | |
| 103 | // wait until ERPC second (server) app will announce ready to quit state. |
| 104 | while (true) |
| 105 | { |
| 106 | Mutex::Guard lock(waitQuitMutex); |
| 107 | if (waitQuit != 0) |
| 108 | { |
| 109 | break; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | // send to ERPC second (server) app ready to quit state |
| 114 | quitFirstInterfaceServer(); |
| 115 | |
| 116 | increaseWaitQuit(); |
| 117 | |
| 118 | vTaskSuspend(NULL); |
| 119 | } |
| 120 | |
| 121 | void runInit(void *arg) |
| 122 | { |
nothing calls this directly
no test coverage detected