WIP5: format
This commit is contained in:
parent
8d49d2d446
commit
08c23d6244
@ -46,10 +46,10 @@ struct Gpio
|
||||
}
|
||||
|
||||
void set(const bool value)
|
||||
{ }
|
||||
{}
|
||||
|
||||
void toggle()
|
||||
{ }
|
||||
{}
|
||||
};
|
||||
|
||||
bool Gpio::is_set = false;
|
||||
|
||||
@ -6,10 +6,10 @@
|
||||
|
||||
#include "skullc/coro/scheduler.hpp"
|
||||
#include "skullc/coro/semaphore.hpp"
|
||||
#include "skullc/coro/signal.hpp"
|
||||
#include "skullc/coro/sleep.hpp"
|
||||
#include "skullc/coro/task.hpp"
|
||||
#include "skullc/coro/this_coro.hpp"
|
||||
#include "skullc/coro/signal.hpp"
|
||||
|
||||
#include <semaphore>
|
||||
|
||||
@ -263,7 +263,7 @@ skullc::coro::Task<> send_signal(const int value, skullc::coro::Signal<int>* sig
|
||||
co_return;
|
||||
}
|
||||
|
||||
}
|
||||
}// namespace
|
||||
|
||||
TEST_CASE("Signal awaiters work.", "[coro],[signal]")
|
||||
{
|
||||
@ -300,7 +300,7 @@ TEST_CASE("Signal awaiters work.", "[coro],[signal]")
|
||||
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.")
|
||||
{
|
||||
|
||||
@ -83,9 +83,10 @@ public:
|
||||
|
||||
return *awaiter_;
|
||||
}
|
||||
|
||||
private:
|
||||
std::optional<T> data_;
|
||||
std::optional<Awaiter> awaiter_;
|
||||
};
|
||||
|
||||
}
|
||||
}// namespace skullc::coro
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user