solved paralel start bug. due to handshaking deficit in thread start

This commit is contained in:
Dhanya Maliakal
2016-08-17 10:29:47 +02:00
parent fb8f49985b
commit e0c45f4afd
3 changed files with 130 additions and 165 deletions

View File

@ -13,7 +13,7 @@
#include "Task.h"
#include "CondVar.h"
#include "Global.h"
#include <semaphore.h>
using namespace std;
@ -44,5 +44,8 @@ private:
//volatile uint64_t tasks_done_mask;
volatile int number_of_ongoing_tasks;
sem_t semStart;
};