isosurface/tbb/tbb-2018_U6/src/old/spin_rw_mutex_v2.h
bool downgrade_to_reader() {
            __TBB_ASSERT( mutex, "lock is not acquired" );
            __TBB_ASSERT( is_writer, "not a writer" );
#if TBB_USE_THREADING_TOOLS||TBB_USE_ASSERT
            internal_downgrade(mutex);
#else
            mutex->state = 4; // Bit 2 - reader, 00..00100
#endif
            is_writer = false;
            return true;
        }
//! Downgrade writer to become a reader.
Downgrade writer to become a reader.
Downgrade writer to become a reader .
bool downgrade_to_reader() {
            __TBB_ASSERT( mutex, "lock is not acquired" );
            __TBB_ASSERT( is_writer, "not a writer" );
#if TBB_USE_THREADING_TOOLS||TBB_USE_ASSERT
            internal_downgrade(mutex);
#else
            mutex->state = 4; 
#endif
            is_writer = false;
            return true;
        }
bool downgrade_to_reader ( ) { __TBB_ASSERT ( mutex , " " ) ; __TBB_ASSERT ( is_writer , " " ) ; #if TBB_USE_THREADING_TOOLS || TBB_USE_ASSERT internal_downgrade ( mutex ) ; #else mutex -> state = 4 ; #endif is_writer = false ; return true ; }
Downgrade writer to become a reader.
Downgrade writer to become a reader .
// Bit 2 - reader, 00..00100