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.
| 82 | // do not need to be included in every file that uses tensorflow's |
| 83 | // condition_variable. |
| 84 | static inline nsync::nsync_cv *cv_cast(internal::CVData *cv) { |
| 85 | return reinterpret_cast<nsync::nsync_cv *>(cv); |
| 86 | } |
| 87 | |
| 88 | condition_variable::condition_variable() { |
| 89 | nsync::nsync_cv_init(cv_cast(&cv_)); |
no outgoing calls
no test coverage detected