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

Method lock_shared

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

Source from the content-addressed store, hash-verified

47void mutex::unlock() { nsync::nsync_mu_unlock(mu_cast(&mu_)); }
48
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;

Callers 3

ComputeMethod · 0.80
InitMethod · 0.80
SHARED_LOCK_FUNCTIONFunction · 0.80

Calls 1

mu_castFunction · 0.85

Tested by

no test coverage detected