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

Function mu_cast

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

Cast a pointer to internal::MuData to a pointer to the mutex representation. This is done so that the header files for nsync_mu do not need to be included in every file that uses tensorflow's mutex.

Source from the content-addressed store, hash-verified

33// representation. This is done so that the header files for nsync_mu do not
34// need to be included in every file that uses tensorflow's mutex.
35static inline nsync::nsync_mu *mu_cast(internal::MuData *mu) {
36 return reinterpret_cast<nsync::nsync_mu *>(mu);
37}
38
39mutex::mutex() { nsync::nsync_mu_init(mu_cast(&mu_)); }
40

Callers 11

mutexMethod · 0.85
lockMethod · 0.85
try_lockMethod · 0.85
unlockMethod · 0.85
lock_sharedMethod · 0.85
try_lock_sharedMethod · 0.85
unlock_sharedMethod · 0.85
AwaitMethod · 0.85
AwaitWithDeadlineMethod · 0.85
waitMethod · 0.85
wait_until_system_clockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected