Skip to content
Snippets Groups Projects
Commit 1e354e44 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Intermediate Commit (2022-11-23 17:04)

parent 52173819
No related branches found
No related tags found
No related merge requests found
Pipeline #92967 failed
......@@ -57,17 +57,17 @@ class ALIGN_TO_CACHE_LINE Fiber : public AbstractFiber, public Logger<LogSubsyst
Fiber() : Fiber([]() {}) {}
protected:
Fiber(fiber_fun_t function, void* arg, workeraffinity_t* affinity)
: function(std::move(function)), arg(arg), affinity(affinity){};
Fiber(fiber_fun_t function, void* arg, workeraffinity_t* affinity) noexcept
: function(std::move_if_noexcept(function)), arg(arg), affinity(affinity) {};
// cppcheck-suppress uninitMemberVar
explicit Fiber(const fiber_fun0_t& function, workeraffinity_t* affinity)
explicit Fiber(const fiber_fun0_t& function, workeraffinity_t* affinity) noexcept
: Fiber([function](UNUSED_ARG void* arg) { function(); }, nullptr, affinity) {}
Fiber(fiber_fun_t function, void* arg) : Fiber(std::move(function), arg, nullptr){};
Fiber(fiber_fun_t function, void* arg) noexcept : Fiber(std::move(function), arg, nullptr){};
// cppcheck-suppress uninitMemberVar
explicit Fiber(const fiber_fun0_t& function) : Fiber(function, nullptr) {}
explicit Fiber(const fiber_fun0_t& function) noexcept : Fiber(function, nullptr) {}
virtual ~Fiber() = default;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment