2004-08-12
2004-08-12 12:37:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
6542e86fc7f2b37d8a758aad1f1890a12e2a4900
(14 lines)
(+10/-4)
[
Show
| Annotate
]
Branch: 7.9
Added flags field.
ABI fix.
Rev: src/threads.h:1.129
2:
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id: threads.h,v 1.128 2004/05/20 20:13:38 grubba Exp $
+ || $Id: threads.h,v 1.129 2004/08/12 12:37:35 grubba Exp $
*/
#ifndef THREADS_H
28:
#define THREAD_RUNNING 0
#define THREAD_EXITED 1
+ /* Thread flags */
+ #define THREAD_FLAG_TERM 1 /* Pending termination. */
+ #define THREAD_FLAG_INTR 2 /* Pending interrupt. */
+
/* Debug flags */
#define THREAD_DEBUG_LOOSE 1 /* Thread is not bound to the interpreter. */
40:
#else
char status;
#endif
- #ifdef PIKE_DEBUG
- char debug_flags;
- #endif
+ unsigned short flags;
COND_T status_change;
THREAD_T id;
struct mapping *thread_local;
51: Inside #if CPU_TIME_IS_THREAD_LOCAL == PIKE_YES
#if CPU_TIME_IS_THREAD_LOCAL == PIKE_YES
cpu_time_t auto_gc_time;
#endif
+ #ifdef PIKE_DEBUG
+ char debug_flags;
+ #endif
};