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

Method acquire_internal_lock

benchmarks/tbb/queuing_rw_mutex.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59inline void queuing_rw_mutex::scoped_lock::acquire_internal_lock()
60{
61 // Usually, we would use the test-test-and-set idiom here, with exponential backoff.
62 // But so far, experiments indicate there is no value in doing so here.
63 while( !try_acquire_internal_lock() ) {
64 __TBB_Pause(1);
65 }
66}
67
68inline void queuing_rw_mutex::scoped_lock::release_internal_lock()
69{

Callers

nothing calls this directly

Calls 1

__TBB_PauseFunction · 0.85

Tested by

no test coverage detected