forked from Alepha/Alepha
Non-blocking states and documentation for Interlock
.
This commit is contained in:
@ -115,7 +115,7 @@ namespace Alepha::Hydrogen::Atomic ::detail:: Mailbox_m
|
||||
interlock( Alepha::unique_lock< Alepha::mutex > &lock )
|
||||
{
|
||||
if( C::debugInterlock ) error() << "Interlock entered." << std::endl;
|
||||
interlockPoint.checkpoint( lock, [&]{ awaken( lock ); } );
|
||||
interlockPoint.wait( lock, [&]{ awaken( lock ); } );
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user