pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /*   || 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   #define THREADS_H      #include "machine.h"   #include "object.h"   #include "pike_error.h"   #include "interpret.h"   #include "pike_threadlib.h"
pike.git/src/threads.h:21:   struct svalue;   struct pike_frame;      extern PIKE_MUTEX_T interleave_lock;      /* Status values */   #define THREAD_NOT_STARTED -1   #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. */      struct thread_state {    struct Pike_interpreter state;    struct object *thread_obj; /* NOTE: Not ref-counted! */    char swapped; /* Set if thread has been swapped out. */   #ifdef __CHAR_UNSIGNED__    signed char status;   #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;    struct thread_state *hashlink, **backlink;    struct svalue result;   #if CPU_TIME_IS_THREAD_LOCAL == PIKE_YES    cpu_time_t auto_gc_time;   #endif -  + #ifdef PIKE_DEBUG +  char debug_flags; + #endif   };         /* Prototypes begin here */   int low_nt_create_thread(unsigned stack_size,    unsigned (TH_STDCALL *func)(void *),    void *arg,    unsigned *id);   struct thread_starter;   struct thread_local;