ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/Linux/sheepthreads.c
(Generate patch)

Comparing SheepShaver/src/Unix/Linux/sheepthreads.c (file contents):
Revision 1.8 by gbeauche, 2005-06-25T11:36:35Z vs.
Revision 1.9 by gbeauche, 2005-07-03T23:28:30Z

# Line 34 | Line 34
34   #include <unistd.h>
35   #include <signal.h>
36   #include <pthread.h>
37 #include <semaphore.h>
37  
38  
39   /* Thread stack size */
# Line 50 | Line 49 | extern int test_and_set(int *var, int va
49   extern int __clone(int (*fn)(void *), void *, int, void *);
50  
51   /* struct sem_t */
52 + typedef struct {
53 +        struct _pthread_fastlock __sem_lock;
54 +        int __sem_value;
55 +        _pthread_descr __sem_waiting;
56 + } sem_t;
57 +
58 + #define SEM_VALUE_MAX 64
59   #define status __status
60   #define spinlock __spinlock
61   #define sem_lock __sem_lock

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines