pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:32:   #define THREAD_FLAG_SIGNAL_MASK 3 /* All of the above. */      #define THREAD_FLAG_INHIBIT 4 /* Inhibit signals. */      /* Debug flags */   #define THREAD_DEBUG_LOOSE 1 /* Thread is not bound to the interpreter. */      struct thread_state {    struct Pike_interpreter_struct state;    struct object *thread_obj; /* NOTE: Not ref-counted! */ -  struct mapping *thread_local; +  struct mapping *thread_locals;    struct thread_state *hashlink, **backlink;    struct svalue result;    COND_T status_change;    THREAD_T id;    cpu_time_t interval_start; /* real_time at THREADS_DISALLOW(). */   #ifdef CPU_TIME_MIGHT_BE_THREAD_LOCAL    cpu_time_t auto_gc_time;   #endif    unsigned short waiting; /* Threads waiting on status_change. */    unsigned short flags;
pike.git/src/threads.h:57:   #endif   };         /* Prototypes begin here */   PMOD_EXPORT int low_nt_create_thread(unsigned stack_size,    unsigned (TH_STDCALL *func)(void *),    void *arg,    unsigned *id);   struct thread_starter; - struct thread_local; + struct thread_local_var;   void low_init_threads_disable(void);   void init_threads_disable(struct object *o);   void exit_threads_disable(struct object *o);   void init_interleave_mutex(IMUTEX_T *im);   void exit_interleave_mutex(IMUTEX_T *im);   void thread_table_init(void);   unsigned INT32 thread_table_hash(THREAD_T *tid);   PMOD_EXPORT void thread_table_insert(struct thread_state *s);   PMOD_EXPORT void thread_table_delete(struct thread_state *s);   PMOD_EXPORT struct thread_state *thread_state_for_id(THREAD_T tid);