I'm writing some TBB code and would like to use the TBB read/write mutex. There is a return value for upgrading to a writer shown:
//Change reader lock to writer lock. Return false if lock
// was released and reacquired. true otherwise, including if
// the lock was already a writer lock.
bool RW::scoped_lock::upgrade_to_writer()
What is the significance of this return value? For reference, my implementation looks correct to me but Intel Inspector is reporting a data race inside the critical section and I'm suspicious that it may have something to do with this variable.