pike.git / lib / modules / Thread.pmod

version» Context lines:

pike.git/lib/modules/Thread.pmod:652: Inside #if constant(thread_create)
   //! Returns a @[Result] object with an array    //! with one element for the result for each    //! of the functions in @[fun_args].    //!    //! @note    //! Do not modify the elements of @[fun_args]    //! before the result is available.    //!    //! @note    //! If any of the functions in @[fun_args] throws -  //! and error, all of the accululated results +  //! and error, all of the accumulated results    //! (if any) will be dropped from the result, and    //! the first backtrace be provided.    //!    //! @seealso    //! @[run_multiple_async()]    Result run_multiple( array(array(function|array)) fun_args )    {    Result r = Result(); // private result..    r->value = allocate( sizeof( fun_args ) );    mapping nl = ([ "num_left":sizeof( fun_args ) ]);