PERFORCE change 65552 for review
David Xu
davidxu at FreeBSD.org
Sat Nov 20 04:53:08 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=65552
Change 65552 by davidxu at davidxu_alona on 2004/11/20 12:52:08
Slightly adjust thread members layout, put lock on 64 bits boundary.
Affected files ...
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#4 edit
Differences ...
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#4 (text+ko) ====
@@ -49,8 +49,8 @@
#include <sys/time.h>
#include <sys/cdefs.h>
#include <sys/queue.h>
+#include <ucontext.h>
#include <sys/thr.h>
-#include <ucontext.h>
#include <pthread.h>
#include <pthread_np.h>
@@ -378,19 +378,19 @@
char *name;
u_int64_t uniqueid; /* for gdb */
- /* How many low level locks the thread held. */
- int locklevel;
-
/*
* Lock for accesses to this thread structure.
*/
struct lock lock;
+ /* Thread exits in kernel, written by kernel. */
+ long isdead;
+
/* Kernel thread id. */
long tid;
- /* Thread exits in kernel, written by kernel. */
- long isdead;
+ /* How many low level locks the thread held. */
+ int locklevel;
/* How many signals were received. */
int sigseqno;
More information about the p4-projects
mailing list