pike.git / lib / modules / Concurrent.pmod

version» Context lines:

pike.git/lib/modules/Concurrent.pmod:16:   protected Thread.Mutex mux = Thread.Mutex();   protected Thread.Condition cond = Thread.Condition();      //! Global failure callback, called when a promise without failure   //! callback fails. This is useful to log exceptions, so they are not   //! just silently caught and ignored.   void on_failure(function(mixed : void) f)   {    global_on_failure = f;   } - protected function(mixed : void) global_on_failure; + protected function(mixed : void) global_on_failure = master()->handle_error;      //! @param enable   //! @int   //! @value 0   //! A @expr{false@} value causes all @[Concurrent] callbacks   //! (except for timeouts) to default to being called directly,   //! without using a backend.   //! @value 1   //! A @expr{true@} value causes callbacks to default to being   //! called via @[Pike.DefaultBackend].