| 1171 | |
| 1172 | template <typename T> |
| 1173 | void SyncVar<T>::stop_wait() { |
| 1174 | _lock.lock(); |
| 1175 | if (!_sem.is_null()) { |
| 1176 | _sem->stop_wait(); |
| 1177 | if (!_sem->_idle()) |
| 1178 | _sem->post(); |
| 1179 | } |
| 1180 | _lock.unlock(); |
| 1181 | } |
| 1182 | |
| 1183 | template <typename T> |
| 1184 | T SyncVar<T>::read() { |
no test coverage detected