pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2933:    struct svalue key;    struct mapping *m;    key.u.integer = ((struct thread_local *)CURRENT_STORAGE)->id;    key.type = T_INT;    key.subtype = NUMBER_NUMBER;    pop_n_elems(args);    if(Pike_interpreter.thread_state != NULL &&    (m = Pike_interpreter.thread_state->thread_local) != NULL)    mapping_index_no_free(Pike_sp++, m, &key);    else { -  push_int(0); -  Pike_sp[-1].subtype=NUMBER_UNDEFINED; +  push_undefined();    }   }      /*! @decl mixed set(mixed value)    *!    *! Set the thread local value.    *!    *! This sets the value returned by the @[get] method.    *!    *! Calling this method does not affect the value returned by @[get()] when