Skip to content

Commit

Permalink
MSVC build fixes.
Browse files Browse the repository at this point in the history
Concerning that these were not caught by presubmits (!)
  • Loading branch information
ben-clayton committed Jul 8, 2020
1 parent 84f047c commit 1e8acb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions include/marl/conditionvariable.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ void ConditionVariable::notify_one() {
}
{
marl::lock lock(mutex);
for (auto fiber : waiting) {
fiber->notify();
break; // Only wake one fiber.
if (waiting.size() > 0) {
(*waiting.begin())->notify(); // Only wake one fiber.
}
}
if (numWaitingOnCondition > 0) {
Expand Down
4 changes: 2 additions & 2 deletions include/marl/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#define MARL_NO_EXPORT __attribute__((visibility("hidden")))
#endif

#endif

#ifndef MARL_EXPORT
#define MARL_EXPORT
#endif
Expand All @@ -38,6 +40,4 @@
#define MARL_NO_EXPORT
#endif

#endif //

#endif // marl_export_h

0 comments on commit 1e8acb5

Please sign in to comment.