-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[librtpi] include condition_variable.hpp fix (#41601)
- Loading branch information
Showing
5 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
ports/librtpi/condition_variable-fix-wait_until-predicate-evaluation.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 75409d8ec67146e0c245316cb564aed5ffda5041 Mon Sep 17 00:00:00 2001 | ||
From: Ryan Zoeller <[email protected]> | ||
Date: Fri, 30 Aug 2024 10:51:27 -0500 | ||
Subject: [PATCH] condition_variable: fix wait_until predicate evaluation | ||
|
||
Signed-off-by: Ryan Zoeller <[email protected]> | ||
--- | ||
src/rtpi/condition_variable.hpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/rtpi/condition_variable.hpp b/src/rtpi/condition_variable.hpp | ||
index 9041ab7..6fd82d8 100644 | ||
--- a/src/rtpi/condition_variable.hpp | ||
+++ b/src/rtpi/condition_variable.hpp | ||
@@ -185,7 +185,7 @@ class condition_variable { | ||
const std::chrono::time_point<Clock, Duration> &timeout_time, | ||
Predicate stop_waiting) | ||
{ | ||
- while (!stop_waiting) { | ||
+ while (!stop_waiting()) { | ||
if (wait_until(lock, timeout_time) == | ||
cv_status::timeout) | ||
return stop_waiting(); | ||
-- | ||
2.43.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters