Skip to content

Commit

Permalink
restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Nov 10, 2023
1 parent bd77940 commit b1669c0
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
*/
#include "ChipMainLoopWork.h"

#include <platform/CHIPDeviceLayer.h>
#include <mutex>
#include <condition_variable>
#include <mutex>
#include <platform/CHIPDeviceLayer.h>

namespace chip {
namespace MainLoopWork {
Expand All @@ -34,12 +34,14 @@ struct WorkData

WorkData() {}
~WorkData() {}
void Post() {
void Post()
{
std::unique_lock lock(mux);
done = true;
cond.notify_all();
}
void Wait() {
void Wait()
{
std::unique_lock lock(mux);
cond.wait(lock, [&] { return done; });
}
Expand Down

0 comments on commit b1669c0

Please sign in to comment.