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

Function do_mutex_unlock

thread/thread.cpp:1737–1744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1735 return (int)ret - 1;
1736 }
1737 inline void do_mutex_unlock(mutex* m)
1738 {
1739 SCOPED_LOCK(m->splock);
1740 ScopedLockHead h(m);
1741 m->owner.store(h);
1742 if (h)
1743 prelocked_thread_interrupt(h, -1);
1744 }
1745 static void mutex_unlock(void* m_)
1746 {
1747 if (!m_) return;

Callers 2

mutex_unlockFunction · 0.85
unlockMethod · 0.85

Calls 1

Tested by

no test coverage detected