MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / spin_wait_while_geq

Function spin_wait_while_geq

benchmarks/tbb/reader_writer_lock.cpp:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59/** T and U should be comparable types. */
60template<typename T, typename U>
61void 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. */

Callers 1

set_next_writerMethod · 0.85

Calls 1

pauseMethod · 0.80

Tested by

no test coverage detected