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:   #include "global.h" - RCSID("$Id: threads.c,v 1.87 1999/05/08 04:46:07 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.88 1999/05/12 05:27:48 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;
24: Inside #if defined(__NT__)
     #ifdef __NT__    + int low_nt_create_thread(unsigned stack_size, +  unsigned (TH_STDCALL *fun)(void *), +  void *arg, +  unsigned *id) + { +  HANDLE h=_beginthreadex(NULL, stack_size, fun, arg, 0, id); +  if(h) +  { +  CloseHandle(h); +  return 0; +  } +  else +  { +  return 1; +  } + } +    #ifdef PIKE_DEBUG   static int IsValidHandle(HANDLE h)   {