X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWTF%2FChangeLog;h=b775dc08e1b8440b59cfa4b52d5e5d85bfe8461b;hp=aeae86be0a4c8099d265ec1756ee6180aee97f2a;hb=ffc2926d144fca7f20a11021dc42213a08498eb6;hpb=46a9c07399e4dd6e287b768a1550256d968d7ad0 diff --git a/Source/WTF/ChangeLog b/Source/WTF/ChangeLog index aeae86b..b775dc0 100644 --- a/Source/WTF/ChangeLog +++ b/Source/WTF/ChangeLog @@ -1,3 +1,30 @@ +2016-04-19 Filip Pizlo + + Clean up the ParkingLot uparking API a bit + https://bugs.webkit.org/show_bug.cgi?id=156746 + + Reviewed by Saam Barati and Geoffrey Garen. + + Previously, unparkOne() would either return a boolean to tell you if there are any more threads on + the queue or it would pass your callback a pair of booleans - one to tell if a thread was unparked + and another to tell if there are any more threads. This was an annoying inconsistency. What if you + wanted to know if unparkOne() unparked a thread but you don't care to use callbacks? + + This fixes unparkOne() to use a struct called UnparkResult for both of its variants. This makes the + code a bit cleaner. + + * wtf/Atomics.h: Add some more atomic ops. + (WTF::Atomic::exchangeAndAdd): + (WTF::Atomic::exchange): + * wtf/Condition.h: Change calls to unparkOne(). + (WTF::ConditionBase::notifyOne): + * wtf/Lock.cpp: Change calls to unparkOne(). + (WTF::LockBase::unlockSlow): + * wtf/ParkingLot.cpp: + (WTF::ParkingLot::parkConditionally): + (WTF::ParkingLot::unparkOne): + * wtf/ParkingLot.h: Switch to using ScopedLambda and introduce UnparkResult. + 2016-04-19 Commit Queue Unreviewed, rolling out r199726.