From cc7be8dc05cb75b05941f827faa63b921f4122c2 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sun, 4 Jul 2004 19:07:07 +0000 Subject: [PATCH] Record the offset of thr_id in the thread structure. Required for debugging. --- lib/libthr/thread/thr_create.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index a6193327a6e..38e483fd970 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -44,6 +44,7 @@ #include "libc_private.h" #define OFF(f) offsetof(struct pthread, f) +int _thread_thr_id_offset = OFF(thr_id); int _thread_next_offset = OFF(tle.tqe_next); int _thread_name_offset = OFF(name); int _thread_ctx_offset = OFF(ctx);