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

Fix SimpleFibTest

We need to spawn another fiber in fibKickoff
parent 8985fc43
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "BinaryPrivateSemaphore.hpp" #include "BinaryPrivateSemaphore.hpp"
#include "CountingPrivateSemaphore.hpp" #include "CountingPrivateSemaphore.hpp"
#include "Debug.hpp" #include "Debug.hpp"
#include "emper.hpp"
typedef struct { typedef struct {
int n; int n;
...@@ -63,7 +64,8 @@ static void fibKickoff() { ...@@ -63,7 +64,8 @@ static void fibKickoff() {
BPS sem; BPS sem;
fibParams params = { fibNum, &result, &sem }; fibParams params = { fibNum, &result, &sem };
fib(&params); Fiber* fibFiber = Fiber::from(fib, &params);
async(fibFiber);
sem.wait(); sem.wait();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment