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.121 2002/10/11 01:39:39 nilsson Exp $ + || $Id: threads.h,v 1.122 2003/02/08 17:12:27 mast Exp $   */      #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "object.h"   #include "pike_error.h"   #include "interpret.h"   #include "pike_threadlib.h"      #ifdef PIKE_THREADS    -  + #include "pike_rusage.h" +    struct svalue;   struct pike_frame;      extern PIKE_MUTEX_T interleave_lock;      #define THREAD_NOT_STARTED -1   #define THREAD_RUNNING 0   #define THREAD_EXITED 1      struct thread_state {
pike.git/src/threads.h:33:    THREAD_T id;    struct mapping *thread_local;    struct thread_state *hashlink, **backlink;   #ifdef PROFILING   #if SIZEOF_LONG_LONG - 0 != 0    long long time_base;   #else    long time_base;   #endif   #endif /* PROFILING */ + #if CPU_TIME_IS_THREAD_LOCAL == YES +  cpu_time_t auto_gc_time; + #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;