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.138 2010/09/28 16:20:59 grubba Exp $ + || $Id: threads.h,v 1.139 2010/09/29 12:48:22 grubba Exp $   */      #ifndef THREADS_H   #define THREADS_H      #include "object.h"   #include "pike_error.h"   #include "interpret.h"   #include "pike_threadlib.h"   
pike.git/src/threads.h:106:   void th_init(void);   void cleanup_all_other_threads (void);   void th_cleanup(void);   int th_num_idle_farmers(void);   int th_num_farmers(void);   PMOD_EXPORT void th_farm(void (*fun)(void *), void *here);   PMOD_EXPORT void call_with_interpreter(void (*func)(void *ctx), void *ctx);   PMOD_EXPORT void enable_external_threads(void);   PMOD_EXPORT void disable_external_threads(void);   /* Prototypes end here */ + #else + #define pike_thread_yield()      #endif         /* for compatibility */   #include "interpret.h"      #endif /* THREADS_H */