pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.71 1998/05/01 15:49:18 grubba Exp $"); + RCSID("$Id: threads.c,v 1.72 1998/05/01 15:57:43 grubba Exp $");      int num_threads = 1;   int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "object.h"   #include "pike_macros.h"   #include "callback.h"
pike.git/src/threads.c:880:       me->harvest = 0;    mt_lock( &rosie );    me->neighbour = farmers;    farmers = me;   /* fprintf(stderr, "farm_wait %p\n", me); */    while(!me->harvest) co_wait( &me->harvest_moon, &rosie );    mt_unlock( &rosie );   /* fprintf(stderr, "farm_endwait %p\n", me); */    } while(1); -  // NOT_REACHED -  return NULL; // Keep the compiler happy. +  /* NOT_REACHED */ +  return NULL; /* Keep the compiler happy. */   }      int th_num_idle_farmers(void)   {    int q = 0;    struct farmer *f = farmers;    while(f) { f = f->neighbour; q++; }    return q;   }