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

Function cv_cast

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

Cast a pointer to internal::CVData to a pointer to the condition variable representation. This is done so that the header files for nsync_cv do not need to be included in every file that uses tensorflow's condition_variable.

Source from the content-addressed store, hash-verified

82// do not need to be included in every file that uses tensorflow's
83// condition_variable.
84static inline nsync::nsync_cv *cv_cast(internal::CVData *cv) {
85 return reinterpret_cast<nsync::nsync_cv *>(cv);
86}
87
88condition_variable::condition_variable() {
89 nsync::nsync_cv_init(cv_cast(&cv_));

Callers 5

condition_variableMethod · 0.85
waitMethod · 0.85
notify_oneMethod · 0.85
notify_allMethod · 0.85
wait_until_system_clockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected