pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.99 2000/02/10 17:57:37 hubbe Exp $ +  * $Id: master.pike.in,v 1.100 2000/02/13 16:24:13 grubba Exp $    *    * Master-file for Pike.    *    * Based on master.pike 1.67.    */      // Some configurable parameters useful for debugging      #define PIKE_AUTORELOAD   
pike.git/lib/master.pike.in:255:   object compilation_mutex = _static_modules.Builtin()->mutex();   #endif      static program low_findprog(string pname, string ext, object|void handler)   {    program ret;    array s;    string fname=pname+ext;      #ifdef THREADED -  object key=compilation_mutex->lock(2); +  object key; +  // FIXME: The catch is needed, since we might be called in +  // a context when threads are disabled. +  // (compile() disables threads). +  catch { +  key=compilation_mutex->lock(2); +  };   #endif      #ifdef PIKE_AUTORELOAD    if(!autoreload_on || load_time[fname]>=time())   #endif    {    if(!zero_type (ret=programs[fname])) return ret;    }       if( (s=master_file_stat(fname)) && s[1]>=0 )