MCPcopy Create free account
hub / github.com/Singular/Singular / stop_wait

Method stop_wait

kernel/oswrapper/vspace.h:1173–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171
1172template <typename T>
1173void 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
1183template <typename T>
1184T SyncVar<T>::read() {

Callers 4

stop_listenMethod · 0.60
stop_listenMethod · 0.60
stop_listenMethod · 0.60
stop_listenMethod · 0.60

Calls 5

_idleMethod · 0.80
lockMethod · 0.45
is_nullMethod · 0.45
postMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected