MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / spinlock_unlock

Function spinlock_unlock

thread/thread.cpp:1702–1706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700 // return thread_list_interrupt(lst, error_number);
1701 }
1702 static void spinlock_unlock(void* s_)
1703 {
1704 auto splock = (spinlock*)s_;
1705 splock->unlock();
1706 }
1707 int mutex::lock(Timeout timeout) {
1708 if (try_lock() == 0) return 0;
1709 for (auto re = retries; re; --re) {

Callers

nothing calls this directly

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected