pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:107:   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() -  + PMOD_EXPORT void call_with_interpreter(void (*func)(void *ctx), void *ctx); + #define enable_external_threads() + #define disable_external_threads()      #endif -  + /* Prototypes end here */         /* for compatibility */   #include "interpret.h"      #endif /* THREADS_H */