diff options
Diffstat (limited to 'all_pairs/source/cleanupSemaphores.c')
| -rw-r--r-- | all_pairs/source/cleanupSemaphores.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/all_pairs/source/cleanupSemaphores.c b/all_pairs/source/cleanupSemaphores.c new file mode 100644 index 0000000..71ff989 --- /dev/null +++ b/all_pairs/source/cleanupSemaphores.c | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #include <semaphore.h> | ||
| 2 | |||
| 3 | int main(){ | ||
| 4 | sem_unlink("/firstTacleSem"); | ||
| 5 | sem_unlink("/secondTacleSem"); | ||
| 6 | sem_unlink("/thirdTacleSem"); | ||
| 7 | sem_unlink("/fourthTacleSem"); | ||
| 8 | //no longer in use; delete last line after running once | ||
| 9 | //sem_unlink("/cacheTacleSem"); | ||
| 10 | } | ||
