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

Function spin_wait_until_and

benchmarks/tbb/reader_writer_lock.cpp:69–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67/** T and U should be comparable types. */
68template<typename T, typename U>
69void spin_wait_until_and( const volatile T& location, U value ) {
70 tbb::internal::atomic_backoff backoff;
71 while( !(location & value) ) backoff.pause();
72}
73
74
75void reader_writer_lock::internal_construct() {

Callers 1

set_next_writerMethod · 0.85

Calls 1

pauseMethod · 0.80

Tested by

no test coverage detected