MCPcopy Create free account
hub / github.com/HelenOS/helenos / try_lock_tail

Function try_lock_tail

uspace/lib/cpp/include/__bits/thread/mutex.hpp:444–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 {
443 template<class L>
444 int try_lock_tail(int idx, L& l)
445 {
446 if (!l.try_lock())
447 return idx;
448 else
449 return -1;
450 }
451
452 template<class L1, class... L2>
453 int try_lock_tail(int idx, L1& l1, L2&... ls)

Callers 1

try_lockFunction · 0.85

Calls 2

try_lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected