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

Method unlock

kernel/oswrapper/vspace.cc:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void FastLock::unlock() {
148#ifdef HAVE_CPP_THREADS
149 while (_lock.test_and_set()) {
150 }
151 _owner = _head;
152 if (_owner >= 0)
153 _head = vmem.metapage->process_info[_head].next;
154 _lock.clear();
155 if (_owner >= 0)
156 send_signal(_owner, 0, false);
157#else
158 unlock_file(vmem.fd, _offset);
159#endif
160}
161
162static void lock_allocator() {
163 vmem.metapage->allocator_lock.lock();

Callers 10

setJobMethod · 0.45
getJobMethod · 0.45
getTransferMethod · 0.45
getJobMethod · 0.45
unlock_allocatorFunction · 0.45
postMethod · 0.45
try_waitMethod · 0.45
waitMethod · 0.45
start_waitMethod · 0.45
stop_waitMethod · 0.45

Calls 3

send_signalFunction · 0.85
unlock_fileFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected