diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-04-03 09:31:15 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-04-03 09:31:15 +0000 |
| commit | ed92686917250ff0cd818edae39dc79dc0795409 (patch) | |
| tree | c8efaea56aab15f31cb9144f71c44364e138e8c0 /lib/libpthread/thread/thr_private.h | |
| parent | 4d2c1d2306f9bf8197b7321352fa2a82ae10e1a6 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
| -rw-r--r-- | lib/libpthread/thread/thr_private.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 7d5bf89f3a3e..e4b377a00c6a 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>. + * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -278,6 +278,13 @@ union pthread_wait_data { */ struct pthread { /* + * Magic value to help recognize a valid thread structure + * from an invalid one: + */ +#define PTHREAD_MAGIC ((u_int32_t) 0xd09ba115) + u_int32_t magic; + + /* * Pointer to the next thread in the thread linked list. */ struct pthread *nxt; |
