a template can work with private spin_rw_mutex::state_t
| 32 | |
| 33 | template<typename T> // a template can work with private spin_rw_mutex::state_t |
| 34 | static inline T CAS(volatile T &addr, T newv, T oldv) { |
| 35 | // ICC (9.1 and 10.1 tried) unable to do implicit conversion |
| 36 | // from "volatile T*" to "volatile void*", so explicit cast added. |
| 37 | return tbb::internal::as_atomic(addr).compare_and_swap( newv, oldv ); |
| 38 | } |
| 39 | |
| 40 | //! Acquire write lock on the given mutex. |
| 41 | bool spin_rw_mutex_v3::internal_acquire_writer() |
no test coverage detected