Rename semaphore filename to be more generic

This commit is contained in:
Matt Pharr
2011-08-04 05:28:00 -07:00
parent e05b3981d9
commit 137ea7bde6
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ TasksInit() {
}
char name[32];
sprintf(name, "mandelbrot.%d", (int)getpid());
sprintf(name, "ispc_task.%d", (int)getpid());
workerSemaphore = sem_open(name, O_CREAT, S_IRUSR|S_IWUSR, 0);
if (!workerSemaphore) {
fprintf(stderr, "Error creating semaphore: %s\n", strerror(err));

View File

@@ -106,7 +106,7 @@ TasksInit() {
}
char name[32];
sprintf(name, "mandelbrot.%d", (int)getpid());
sprintf(name, "ispc_task.%d", (int)getpid());
workerSemaphore = sem_open(name, O_CREAT, S_IRUSR|S_IWUSR, 0);
if (!workerSemaphore) {
fprintf(stderr, "Error creating semaphore: %s\n", strerror(err));