Cleanup comments and change CV_WakeAll -> CV_Broacast

This commit is contained in:
Ali Mashtizadeh 2023-10-16 15:07:17 -04:00
parent 7f6b72c963
commit bd44784c5f
2 changed files with 9 additions and 10 deletions

View File

@ -70,12 +70,12 @@ CV_Signal(CV *cv)
} }
/** /**
* CV_WakeAll -- * CV_Broadcast --
* *
* Wake all threads waiting on the condition. * Wake all threads waiting on the condition.
*/ */
void void
CV_WakeAll(CV *cv) CV_Broadcast(CV *cv)
{ {
WaitChannel_WakeAll(&cv->chan); WaitChannel_WakeAll(&cv->chan);

View File

@ -62,8 +62,7 @@ WaitChannel_Lock(WaitChannel *wchan)
/** /**
* WaitChannel_Sleep -- * WaitChannel_Sleep --
* *
* Places the current thread to asleep while releasing the wait channel * Places the current thread to asleep while releasing the wait channel lock.
* lock.
* *
* Side Effect: * Side Effect:
* Retains a reference to thread until the thread is woken up. * Retains a reference to thread until the thread is woken up.