Skip to content

Commit

Permalink
Make folly compatible with Cpp 20
Browse files Browse the repository at this point in the history
Reviewed By: ot, rudybear

Differential Revision: D49452905

fbshipit-source-id: 9e1e6223cfe054fcf8a5569717baab1c5d891ae5
  • Loading branch information
Lena Witterauf authored and facebook-github-bot committed Sep 28, 2023
1 parent 5497d38 commit be7b234
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions folly/synchronization/Baton.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ class Baton {
deadline - Clock::now()));
}

switch (detail::spin_pause_until(deadline, opt, [=] { return ready(); })) {
switch (
detail::spin_pause_until(deadline, opt, [this] { return ready(); })) {
case detail::spin_result::success:
return true;
case detail::spin_result::timeout:
Expand All @@ -320,7 +321,7 @@ class Baton {
}

if (!MayBlock) {
switch (detail::spin_yield_until(deadline, [=] { return ready(); })) {
switch (detail::spin_yield_until(deadline, [this] { return ready(); })) {
case detail::spin_result::success:
return true;
case detail::spin_result::timeout:
Expand Down

0 comments on commit be7b234

Please sign in to comment.