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

Method enqueue

kernel/oswrapper/vspace.h:1110–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108 _lock() {
1109 }
1110 void enqueue(T item) {
1111 if (_bounded)
1112 _outgoing.wait();
1113 enqueue_nowait(item);
1114 }
1115 bool try_enqueue(T item) {
1116 if (_bounded && _outgoing.try_wait()) {
1117 enqueue_nowait(item);

Callers 3

kVerify2Function · 0.80
id_ChineseRemainder_0Function · 0.80
id_Farey_0Function · 0.80

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected