Branch: Tag:

2000-12-01

2000-12-01 12:39:46 by Martin Stjernholm <mast@lysator.liu.se>

Refer to Thread.Local and not thread_local in error messages.

Rev: src/threads.c:1.148

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.147 2000/12/01 08:09:55 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.148 2000/12/01 12:39:46 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
1161:    if(args>1)    pop_n_elems(args-1);    else if(args<1) -  Pike_error("Too few arguments to thread_local->set()\n"); +  Pike_error("Too few arguments to Thread.Local.set()\n");       if(Pike_interpreter.thread_id == NULL) -  Pike_error("Trying to set thread_local without thread!\n"); +  Pike_error("Trying to set Thread.Local without thread!\n");       if((m = OBJ2THREAD(Pike_interpreter.thread_id)->thread_local) == NULL)    m = OBJ2THREAD(Pike_interpreter.thread_id)->thread_local =