Branch: Tag:

1999-05-12

1999-05-12 05:27:49 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix for stupid glibc threads

Rev: src/acconfig.h:1.37
Rev: src/configure.in:1.265
Rev: src/main.c:1.61
Rev: src/threads.c:1.88
Rev: src/threads.h:1.63

1:   /* -  * $Id: threads.h,v 1.62 1999/05/08 04:47:44 hubbe Exp $ +  * $Id: threads.h,v 1.63 1999/05/12 05:27:49 hubbe Exp $    */   #ifndef THREADS_H   #define THREADS_H
181:      #define THREAD_T unsigned   #define th_setconcurrency(X) - #define th_create(ID,fun,arg) (!_beginthreadex(NULL, 2*1024*1024,fun, arg,0,ID)) - #define th_create_small(ID,fun,arg) (!_beginthreadex(NULL, 8192*sizeof(char *), fun,arg,0,ID)) + #define th_create(ID,fun,arg) low_nt_create_thread(2*1024*1024,fun, arg,ID) + #define th_create_small(ID,fun,arg) low_nt_create_thread(8192*sizeof(char *), fun,arg,ID)   #define TH_RETURN_TYPE unsigned __stdcall -  + #define TH_STDCALL __stdcall   #define th_exit(foo) _endthread(foo)   #define th_join(ID,res) /******************* FIXME! ****************/   #define th_self() GetCurrentThreadId()
313:   #define TH_RETURN_TYPE void *   #endif    + #ifndef TH_STDCALL + #define TH_STDCALL + #endif +    #ifndef th_destroy   #define th_destroy(X)   #endif
490:    } while(0)      /* Prototypes begin here */ + int low_nt_create_thread(unsigned stack_size, +  unsigned (TH_STDCALL *func)(void *), +  void *arg, +  unsigned *id);   struct thread_starter;   TH_RETURN_TYPE new_thread_func(void * data);   void f_thread_create(INT32 args);