| 191 | out_type OutMsg; |
| 192 | |
| 193 | void thread() |
| 194 | { |
| 195 | while (!should_stop()) { |
| 196 | if(InPipe.dequeue_or_timeout(InMsg, 100)) |
| 197 | { |
| 198 | // if function signals ready to send OutMsg |
| 199 | while (!OutPipe.enqueue_or_timeout(OutMsg, 100)) |
| 200 | { |
| 201 | // try to send until should stop |
| 202 | if (should_stop()) |
| 203 | { |
| 204 | return; |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | }; |
| 210 | }; |
| 211 | |
| 212 |
nothing calls this directly
no test coverage detected