Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and wirew0rm committed Jan 30, 2024
1 parent 2a630a0 commit 0900c12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ui/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct App {
};
template<typename T>
struct HandlerImpl : Handler {
T data;
T data;
std::thread thread;
template<typename... Args>
explicit HandlerImpl(Args &&...args)
Expand Down
14 changes: 7 additions & 7 deletions src/ui/flowgraph/datasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
template<typename T>
requires std::is_arithmetic_v<T>
struct SineSource : public gr::Block<SineSource<T>, gr::BlockingIO<true>> {
gr::PortOut<T> out{};
float val = 0;
float frequency = 1.f;
std::mutex mutex;
gr::PortOut<T> out{};
float val = 0;
float frequency = 1.f;
std::mutex mutex;
std::condition_variable conditionvar;
std::deque<T> samples;
std::thread thread;
std::atomic_bool quit = false;
std::deque<T> samples;
std::thread thread;
std::atomic_bool quit = false;

SineSource()
: thread([this]() {
Expand Down

0 comments on commit 0900c12

Please sign in to comment.