Branch: Tag:

1997-02-20

1997-02-20 00:46:24 by David Hedbor <david@hedbor.org>

+= #ifdef THREADS runt fifo.h includen, samt lite #if efun(send_fd)
runt shufflefunktionerna.

Rev: server/base_server/roxen.pike:1.40

1: - string cvs_version = "$Id: roxen.pike,v 1.39 1997/02/19 02:19:03 per Exp $"; + string cvs_version = "$Id: roxen.pike,v 1.40 1997/02/20 00:46:24 neotron Exp $";   #define IN_ROXEN -  + #ifdef THREADS   #include <fifo.h> -  + #endif   #include <module.h>   #include <variables.h>   #include <roxen.h>
1727:   // serve new requests. The file descriptors of the open files and the   // clients are sent to the program, then the shuffler just shuffles   // the data to the client. + #if efun(send_fd)   void _shuffle(object from, object to)   {    if(shuffle_fd)
1748:    lambda(function w){destruct(function_object(w));});   #endif   } -  + #endif   #ifdef THREADS   object shuffle_queue = Queue();   
1761: Inside #if defined(THREADS)
  {    shuffle_queue->write(({a,b}));   } - #else + #elif efun(send_fd)   function shuffle = _shuffle;   #endif -  + #endif      #ifdef THREADS   object st=thread_create(shuffle_thread);   #endif       -  + #if efun(send_fd)   object shuffler;   void init_shuffler()   {
1790:    }   }   #endif -  + #endif   static private int _recurse;      void exit_when_done()