Skip to content

Commit 1271cf0

Browse files
committed
Add pthread flags - probably a dead end
1 parent 87a3ece commit 1271cf0

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed
Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
11
$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 @@
55
* To be safe, we include pthread.h first.
66
*/
77

88
-#if defined(_PR_PTHREADS)
99
#include <pthread.h>
1010
-#endif
1111

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+
+
1226
#if defined(_PR_BTHREADS)
1327
#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

Comments
 (0)