| 72 | } |
| 73 | |
| 74 | void 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 |
nothing calls this directly
no test coverage detected