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.
| 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. |
| 35 | static inline nsync::nsync_mu *mu_cast(internal::MuData *mu) { |
| 36 | return reinterpret_cast<nsync::nsync_mu *>(mu); |
| 37 | } |
| 38 | |
| 39 | mutex::mutex() { nsync::nsync_mu_init(mu_cast(&mu_)); } |
| 40 |
no outgoing calls
no test coverage detected