WIP5: format

This commit is contained in:
Erki 2025-02-24 18:23:57 +02:00
parent 8d49d2d446
commit 08c23d6244
3 changed files with 8 additions and 7 deletions

View File

@ -46,10 +46,10 @@ struct Gpio
} }
void set(const bool value) void set(const bool value)
{ } {}
void toggle() void toggle()
{ } {}
}; };
bool Gpio::is_set = false; bool Gpio::is_set = false;

View File

@ -6,10 +6,10 @@
#include "skullc/coro/scheduler.hpp" #include "skullc/coro/scheduler.hpp"
#include "skullc/coro/semaphore.hpp" #include "skullc/coro/semaphore.hpp"
#include "skullc/coro/signal.hpp"
#include "skullc/coro/sleep.hpp" #include "skullc/coro/sleep.hpp"
#include "skullc/coro/task.hpp" #include "skullc/coro/task.hpp"
#include "skullc/coro/this_coro.hpp" #include "skullc/coro/this_coro.hpp"
#include "skullc/coro/signal.hpp"
#include <semaphore> #include <semaphore>
@ -263,7 +263,7 @@ skullc::coro::Task<> send_signal(const int value, skullc::coro::Signal<int>* sig
co_return; co_return;
} }
} }// namespace
TEST_CASE("Signal awaiters work.", "[coro],[signal]") TEST_CASE("Signal awaiters work.", "[coro],[signal]")
{ {
@ -300,7 +300,7 @@ TEST_CASE("Signal awaiters work.", "[coro],[signal]")
REQUIRE(test_coro_called == 1); REQUIRE(test_coro_called == 1);
} }
const std::vector<int> values = { 10, 11, 13 }; const std::vector<int> values = {10, 11, 13};
SECTION("Sending multiple values.") SECTION("Sending multiple values.")
{ {

View File

@ -83,9 +83,10 @@ public:
return *awaiter_; return *awaiter_;
} }
private: private:
std::optional<T> data_; std::optional<T> data_;
std::optional<Awaiter> awaiter_; std::optional<Awaiter> awaiter_;
}; };
} }// namespace skullc::coro