Branch: Tag:

2000-04-18

2000-04-18 06:54:13 by Jonas Wallden <jonasw@roxen.com>

Always initialize mutex and condition variables before use.

Rev: src/modules/Gdbm/gdbmmod.c:1.9
Rev: src/modules/HTTPLoop/accept_and_parse.c:1.11
Rev: src/modules/HTTPLoop/cache.c:1.8
Rev: src/modules/Msql/msqlmod.c:1.12
Rev: src/modules/Postgres/pgresult.c:1.12
Rev: src/modules/Postgres/postgres.c:1.17
Rev: src/modules/spider/spider.c:1.90
Rev: src/threads.c:1.120
Rev: src/threads.h:1.84

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.119 2000/04/15 05:05:28 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.120 2000/04/18 06:53:48 jonasw Exp $");      int num_threads = 1;   int threads_disabled = 0;
1359:    COND_T harvest_moon;   } *farmers;    - static MUTEX_T rosie; + static MUTEX_T rosie STATIC_MUTEX_INIT;      static TH_RETURN_TYPE farm(void *_a)   {