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

Method dequeue_nowait

kernel/oswrapper/vspace.h:1089–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087 _incoming.post();
1088 }
1089 T dequeue_nowait() {
1090 _lock.lock();
1091 VRef<Node> node = pop();
1092 T result;
1093 result = node->data;
1094 node.free();
1095 _lock.unlock();
1096 if (_bounded)
1097 _outgoing.post();
1098 return result;
1099 }
1100
1101public:
1102 Queue(size_t bound = 0) :

Callers 1

completeMethod · 0.80

Calls 4

lockMethod · 0.45
freeMethod · 0.45
unlockMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected