Mercurial > cpython-lru_cache-weakref
comparison Python/thread.c @ 1350:d9cb55ef34e2 legacy-trunk
Added widget methods {Height,Width}{,MM}OfScreen.
| author | Sjoerd Mullender <sjoerd@acm.org> |
|---|---|
| date | Tue, 12 Oct 1993 14:10:58 +0000 |
| parents | 2937897a7d8b |
| children | b1bb74a2b593 |
comparison
equal
deleted
inserted
replaced
| 1349:a3a027c49eb1 | 1350:d9cb55ef34e2 |
|---|---|
| 41 #include <errno.h> | 41 #include <errno.h> |
| 42 | 42 |
| 43 #define HDR_SIZE 2680 /* sizeof(ushdr_t) */ | 43 #define HDR_SIZE 2680 /* sizeof(ushdr_t) */ |
| 44 #define MAXPROC 100 /* max # of threads that can be started */ | 44 #define MAXPROC 100 /* max # of threads that can be started */ |
| 45 | 45 |
| 46 static usptr_t *shared_arena; | 46 /*static*/ usptr_t *shared_arena; |
| 47 static ulock_t count_lock; /* protection for some variables */ | 47 static ulock_t count_lock; /* protection for some variables */ |
| 48 static ulock_t wait_lock; /* lock used to wait for other threads */ | 48 static ulock_t wait_lock; /* lock used to wait for other threads */ |
| 49 static int waiting_for_threads; /* protected by count_lock */ | 49 static int waiting_for_threads; /* protected by count_lock */ |
| 50 static int nthreads; /* protected by count_lock */ | 50 static int nthreads; /* protected by count_lock */ |
| 51 static int exit_status; | 51 static int exit_status; |
