Skip to content

Commit

Permalink
Code format fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard authored Apr 17, 2021
1 parent d9ab117 commit 5ffc422
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cpp/Platform.Delegates/Platform.Delegates.MulticastDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ namespace Platform::Delegates
throw std::bad_function_call();
}
for (auto callbackIt = this->callbacks.rbegin();
callbackIt != std::prev(this->callbacks.rend());
++callbackIt)
callbackIt != std::prev(this->callbacks.rend());
++callbackIt)
{
(*callbackIt)(args...);
}
Expand All @@ -157,7 +157,6 @@ namespace Platform::Delegates
{
return;
}

// To prevent the deadlock the order of locking should be the same for all threads.
// We can use the addresses of MulticastDelegates to sort the mutexes.
if (this < &other)
Expand Down

0 comments on commit 5ffc422

Please sign in to comment.