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.9 by gbeauche, 2005-11-22T21:57:59Z

# Line 2 | Line 2
2   *  posix_sem.cpp - POSIX.4 semaphores "emulation"
3   *  Copyright (C) 1999 Orlando Bassotto
4   *
5 < *  Basilisk II (C) 1997-2000 Christian Bauer
5 > *  Basilisk II (C) 1997-2005 Christian Bauer
6   *
7   *  This program is free software; you can redistribute it and/or modify
8   *  it under the terms of the GNU General Public License as published by
# 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