|
1 | 1 | $OpenBSD$
|
2 |
| ---- dart/third_party/nss/nspr/pr/include/private/primpl.h.orig Sun May 10 16:22:38 2015 |
3 |
| -+++ dart/third_party/nss/nspr/pr/include/private/primpl.h Sun May 10 16:22:44 2015 |
4 |
| -@@ -14,9 +14,7 @@ |
| 2 | +--- dart/third_party/nss/nspr/pr/include/private/primpl.h.orig Fri Apr 24 10:32:25 2015 |
| 3 | ++++ dart/third_party/nss/nspr/pr/include/private/primpl.h Sun May 10 20:02:02 2015 |
| 4 | +@@ -14,10 +14,22 @@ |
5 | 5 | * To be safe, we include pthread.h first.
|
6 | 6 | */
|
7 | 7 |
|
8 | 8 | -#if defined(_PR_PTHREADS)
|
9 | 9 | #include <pthread.h>
|
10 | 10 | -#endif
|
11 | 11 |
|
| 12 | ++/* PRThread.flags */ |
| 13 | ++#define _PR_SYSTEM 0x01 |
| 14 | ++#define _PR_INTERRUPT 0x02 |
| 15 | ++#define _PR_ATTACHED 0x04 /* created via PR_AttachThread */ |
| 16 | ++#define _PR_PRIMORDIAL 0x08 /* the thread that called PR_Init */ |
| 17 | ++#define _PR_ON_SLEEPQ 0x10 /* thread is on the sleepQ */ |
| 18 | ++#define _PR_ON_PAUSEQ 0x20 /* thread is on the pauseQ */ |
| 19 | ++#define _PR_SUSPENDING 0x40 /* thread wants to suspend */ |
| 20 | ++#define _PR_GLOBAL_SCOPE 0x80 /* thread is global scope */ |
| 21 | ++#define _PR_IDLE_THREAD 0x200 /* this is an idle thread */ |
| 22 | ++#define _PR_GCABLE_THREAD 0x400 /* this is a collectable thread */ |
| 23 | ++#define _PR_BOUND_THREAD 0x800 /* a bound thread */ |
| 24 | ++#define _PR_INTERRUPT_BLOCKED 0x1000 /* interrupts blocked */ |
| 25 | ++ |
12 | 26 | #if defined(_PR_BTHREADS)
|
13 | 27 | #include <kernel/OS.h>
|
| 28 | + #endif |
| 29 | +@@ -1583,6 +1595,7 @@ struct PRThread { |
| 30 | + pthread_t id; /* pthread identifier for the thread */ |
| 31 | + PRBool idSet; /* whether 'id' has been set. Protected by |
| 32 | + * pt_book.ml. */ |
| 33 | ++ PRUint32 flags; |
| 34 | + #ifdef _PR_NICE_PRIORITY_SCHEDULING |
| 35 | + pid_t tid; /* Linux-specific kernel thread ID */ |
| 36 | + #endif |
0 commit comments