MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / try_lock_shared

Method try_lock_shared

tensorflow/core/platform/default/mutex.cc:51–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49void mutex::lock_shared() { nsync::nsync_mu_rlock(mu_cast(&mu_)); }
50
51bool mutex::try_lock_shared() {
52 return nsync::nsync_mu_rtrylock(mu_cast(&mu_)) != 0;
53};
54
55void mutex::unlock_shared() { nsync::nsync_mu_runlock(mu_cast(&mu_)); }
56

Callers 1

SHARED_LOCK_FUNCTIONFunction · 0.80

Calls 1

mu_castFunction · 0.85

Tested by

no test coverage detected