Skip to content
Snippets Groups Projects
Commit 7b12cf27 authored by Nicolas Pfeiffer's avatar Nicolas Pfeiffer
Browse files

small change, big improvement (change of Fiber constructor)

parent 42c17985
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ private: ...@@ -68,7 +68,7 @@ private:
public: public:
inline __attribute__((always_inline)) inline __attribute__((always_inline))
Fibril() : Fiber(Fiber::fiber_fun0_t(nullptr)), cont() { Fibril() : Fiber(nullptr, nullptr, nullptr), cont() {
stack = Context::currentContext; // TODO check if this is correct stack = Context::currentContext; // TODO check if this is correct
type = FibrilType; type = FibrilType;
}; };
...@@ -174,10 +174,7 @@ public: ...@@ -174,10 +174,7 @@ public:
if (count == 0) if (count == 0)
return; return;
#else #else
if (!forked) {// FIXME TODO repair / prepare for fork after join if (!forked) {
forked = false;
incremented = 1;
count.store(2, std::memory_order_relaxed);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment