pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2044:    low_co_wait_interpreter (&thread_state->status_change);    THREADS_FPRINTF(0, (stderr, "f_thread_create %p continue\n", thread_state));    SWAP_IN_CURRENT_THREAD();    } else {    low_cleanup_interpret(&thread_state->state);    free_array(arg.args);    Pike_error("Failed to create thread (errno = %d).\n", tmp);    }       THREADS_FPRINTF(0, (stderr, "f_thread_create %p done\n", thread_state)); -  push_int(0); +    }      /*! @endclass    */      #ifdef UNIX_THREADS   /*! @decl void thread_set_concurrency(int concurrency)    *!    *! @fixme    *! Document this function
pike.git/src/threads.c:2732:    *! condition.    *!    *! @note    *! Sometimes more than one thread is woken up.    *!    *! @seealso    *! @[broadcast()]    */   void f_cond_signal(INT32 args)   { -  pop_n_elems(args); +     co_signal(&(THIS_COND->cond));   }      /*! @decl void broadcast()    *!    *! @[broadcast()] wakes up all threads currently waiting for this condition.    *!    *! @seealso    *! @[signal()]    */   void f_cond_broadcast(INT32 args)   { -  pop_n_elems(args); +     co_broadcast(&(THIS_COND->cond));   }      void init_cond_obj(struct object *UNUSED(o))   {    co_init(&(THIS_COND->cond));    THIS_COND->wait_count = 0;   }      void exit_cond_obj(struct object *UNUSED(o))
pike.git/src/threads.c:3093:    *! This class is simulated when Pike is compiled without thread support,    *! so it's always available.    */      /* FIXME: Why not use an init callback()? */   void f_thread_local_create( INT32 args )   {    static INT32 thread_local_id = 0;    ((struct thread_local_var *)CURRENT_STORAGE)->id =    thread_local_id++; -  pop_n_elems(args); -  push_int(0); +    }      PMOD_EXPORT void f_thread_local(INT32 args)   {    struct object *loc = clone_object(thread_local_prog,0);    pop_n_elems(args);    push_object(loc);   }      /*! @decl mixed get()