Rename worker_block_t into worker_sync_t

as it is a synchronization point for workers
not an anonymous block.
This commit is contained in:
Patrick Pelissier committed 2017-12-28 00:03:47 +01:00
1 parent adc7545a42
commit f2344c69ca
3 files changed
+16 -12

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ static int fib(int n)
return n;
struct fib2_s f;
worker_block_t b;
worker_sync_t b;
worker_start(b);
f.n = n - 2;
@@ -70,7 +70,7 @@ static int fib2(int n)
if (n < 2)
return n;
worker_block_t b;
worker_sync_t b;
int y1, y2;
worker_start(b);
WORKER_SPAWN(w_g, b, (n), { y2 = fib2(n-2); }, (y2));