Branch: Tag:

1998-01-30

1998-01-30 06:21:37 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

file->proxy(), memory leak fixes, more debug etc. etc.

Rev: src/array.c:1.24
Rev: src/builtin_functions.c:1.65
Rev: src/error.c:1.11
Rev: src/modules/Oracle/oracle.c:1.7
Rev: src/modules/files/file.c:1.72
Rev: src/modules/system/system.c:1.40
Rev: src/signal_handler.c:1.27
Rev: src/threads.c:1.55
Rev: src/threads.h:1.28

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.54 1998/01/26 20:00:01 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.55 1998/01/30 06:19:51 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;
143: Inside #if defined(POSIX_THREADS)
  struct program *thread_id_prog = 0;   #ifdef POSIX_THREADS   pthread_attr_t pattr; + pthread_attr_t small_pattr;   #endif      struct thread_starter
607: Inside #if defined(POSIX_THREADS)
   pthread_attr_setstacksize(&pattr, 2 * 1024 * 1204);   #endif    pthread_attr_setdetachstate(&pattr, PTHREAD_CREATE_DETACHED); +  +  pthread_attr_init(&small_pattr); + #ifdef HAVE_PTHREAD_ATTR_SETSTACKSIZE +  pthread_attr_setstacksize(&small_pattr, 32768);   #endif -  +  pthread_attr_setdetachstate(&small_pattr, PTHREAD_CREATE_DETACHED);    -  + #endif +     add_efun("thread_create",f_thread_create,"function(mixed ...:object)",    OPT_SIDE_EFFECT);   #ifdef UNIX_THREADS