| 59 | /** T and U should be comparable types. */ |
| 60 | template<typename T, typename U> |
| 61 | void spin_wait_while_geq( const volatile T& location, U value ) { |
| 62 | tbb::internal::atomic_backoff backoff; |
| 63 | while( location>=value ) backoff.pause(); |
| 64 | } |
| 65 | |
| 66 | //! Spin UNTIL (location & value) is true. |
| 67 | /** T and U should be comparable types. */ |