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

Function spinlock_lock

thread/thread.cpp:1797–1799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1795 return ((mutex*)arg)->lock();
1796 }
1797 int spinlock_lock(void* arg) {
1798 return ((spinlock*)arg)->lock();
1799 }
1800 static int cvar_do_wait(thread_list* q, void* m, Timeout timeout, int(*lock)(void*), void(*unlock)(void*)) {
1801 assert(m);
1802 if (!m)

Callers

nothing calls this directly

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected