Branch: Tag:

2001-04-17

2001-04-17 08:41:58 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

fixed bug: roxen's master didn't get backend_thread set, so do that in __INIT instead of create

Rev: lib/master.pike.in:1.153

1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.152 2001/04/09 11:02:18 hubbe Exp $ +  * $Id: master.pike.in,v 1.153 2001/04/17 08:41:58 mirar Exp $    *    * Master-file for Pike.    *
1248:    return _async;   }    + // The backend_thread() function is useful to determine if you are + // the backend thread - important when doing async/sync protocols +  + #if constant(thread_create) + // this must be done in __init if someone inherits the master + static object _backend_thread=this_thread(); + object backend_thread() + { +  return _backend_thread; + } + #endif +    /* This function is called when all the driver is done with all setup    * of modules, efuns, tables etc. etc. and is ready to start executing    * _real_ programs. It receives the arguments not meant for the driver
1265:    mixed v;       _pike_file_name = orig_argv[0]; + #if constant(thread_create) +  _backend_thread = this_thread(); + #endif       foreach(env,a)    {