diff --git a/examples/tasksys.cpp b/examples/tasksys.cpp index 08fb08f5..7844834a 100644 --- a/examples/tasksys.cpp +++ b/examples/tasksys.cpp @@ -90,6 +90,9 @@ #define ISPC_USE_CONCRT #elif defined(__linux__) #define ISPC_USE_PTHREADS + #elif defined(__FreeBSD__) + #define ISPC_USE_PTHREADS +// #define ISPC_USE_TBB_TASK_GROUP // ISPC_USE_PTHREADS fails for some reason, need to investigate #elif defined(__APPLE__) #define ISPC_USE_GCD #endif @@ -755,7 +758,7 @@ InitTaskSystem() { bool success = false; srand(time(NULL)); for (int i = 0; i < 10; i++) { - sprintf(name, "ispc_task.%d.%d", (int)getpid(), (int)rand()); + sprintf(name, "/ispc_task.%d.%d", (int)getpid(), (int)rand()); workerSemaphore = sem_open(name, O_CREAT, S_IRUSR|S_IWUSR, 0); if (workerSemaphore != SEM_FAILED) { success = true;