Branch: Tag:

2004-06-29

2004-06-29 03:14:15 by Alexander Demenshin <aldem-pike@aldem.net>

fix in autodoc and debug output: Thread.Thread->wait() instead of Thread.Thread->result()

Rev: src/threads.c:1.237

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: threads.c,v 1.236 2004/05/01 12:32:18 mast Exp $ + || $Id: threads.c,v 1.237 2004/06/29 03:14:15 aldem Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h" - RCSID("$Id: threads.c,v 1.236 2004/05/01 12:32:18 mast Exp $"); + RCSID("$Id: threads.c,v 1.237 2004/06/29 03:14:15 aldem Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
1676:    push_int64(PTR_TO_INT(THREAD_T_TO_PTR(THIS_THREAD->id)));   }    - /*! @decl mixed result() + /*! @decl mixed wait()    *!    *! Waits for the thread to complete, and then returns    *! the value returned from the thread function.
1690:    }       THREADS_FPRINTF(0, (stderr, -  "Thread->result(): Waiting for thread %p (state:%d).\n", +  "Thread->wait(): Waiting for thread %p (state:%d).\n",    th, th->status));    while(th->status != THREAD_EXITED) {    SWAP_OUT_CURRENT_THREAD();
1699:    check_threads_etc();    THREADS_FPRINTF(0,    (stderr, -  "Thread->result(): Waiting for thread %p (state:%d).\n", +  "Thread->wait(): Waiting for thread %p (state:%d).\n",    th, th->status));    }