ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/posix_sem.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/posix_sem.cpp (file contents):
Revision 1.2 by cebix, 2000-04-10T18:53:03Z vs.
Revision 1.3 by cebix, 2000-07-13T13:47:10Z

# Line 25 | Line 25
25   * with mutex. Seems to be working correctly now.
26   */
27  
28 #include <stdio.h>
28   #include <sys/types.h>
29 + #include <stdio.h>
30   #include <errno.h>
31 + #include <time.h>
32   #include <pthread.h>
33 +
34   #include "semaphore.h"
35  
36   extern "C" {
# Line 62 | Line 64 | int sem_destroy(sem_t* sem)
64          }
65          pthread_mutex_destroy(&sem->sem_lock);
66          sem->sem_waiting = 0;
65        sem->sem_lock = NULL;
67          sem->sem_value = 0;
68          return 0;
69   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines