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

Method enqueue_nowait

kernel/oswrapper/vspace.h:1081–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079 friend class DequeueEvent;
1080
1081 void enqueue_nowait(T item) {
1082 _lock.lock();
1083 VRef<Node> node = vnew<Node>();
1084 node->data = item;
1085 push(node);
1086 _lock.unlock();
1087 _incoming.post();
1088 }
1089 T dequeue_nowait() {
1090 _lock.lock();
1091 VRef<Node> node = pop();

Callers 1

completeMethod · 0.80

Calls 3

lockMethod · 0.45
unlockMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected