mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Record the offset of thr_id in the thread structure. Required for
debugging.
This commit is contained in:
parent
588f096065
commit
cc7be8dc05
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue