1
0
forked from Alepha/Alepha

Non-blocking states and documentation for Interlock.

This commit is contained in:
2023-12-12 23:56:17 -05:00
parent 94596d0d7d
commit c04fc7be3c
3 changed files with 61 additions and 5 deletions

View File

@ -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