Branch: Tag:

2003-02-15

2003-02-15 17:33:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

create_thread() is now truly a class...

Rev: src/builtin_functions.c:1.476
Rev: src/encode.c:1.164
Rev: src/gc.c:1.208
Rev: src/interpret.c:1.290
Rev: src/interpret.h:1.127
Rev: src/modules/HTTPLoop/timeout.c:1.11
Rev: src/modules/files/file.c:1.254
Rev: src/pike_threadlib.h:1.30
Rev: src/threads.c:1.203
Rev: src/threads.h:1.124

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: encode.c,v 1.163 2003/01/26 16:22:50 mirar Exp $ + || $Id: encode.c,v 1.164 2003/02/15 17:33:33 grubba Exp $   */      #include "global.h"
27:   #include "bignum.h"   #include "pikecode.h"    - RCSID("$Id: encode.c,v 1.163 2003/01/26 16:22:50 mirar Exp $"); + RCSID("$Id: encode.c,v 1.164 2003/02/15 17:33:33 grubba Exp $");      /* #define ENCODE_DEBUG */   
1621:    struct pike_string *raw;    struct decode_data *next;   #ifdef PIKE_THREADS -  struct object *thread_id; +  struct thread_state *thread_state;   #endif   #ifdef ENCODE_DEBUG    int debug, depth;
3648:    free((char *)tmp);    }   #ifdef PIKE_THREADS -  free_object(data->thread_id); +  data->thread_state = NULL;   #endif       free( (char *) data);
3684:    for (data = current_decode; data; data=data->next) {    if (data->raw == tmp && data->codec == codec   #ifdef PIKE_THREADS -  && data->thread_id == Pike_interpreter.thread_id +  && data->thread_state == Pike_interpreter.thread_state   #endif    ) {    struct svalue *res;
3718:    data->raw = tmp;    data->next = current_decode;   #ifdef PIKE_THREADS -  data->thread_id = Pike_interpreter.thread_id; +  data->thread_state = Pike_interpreter.thread_state;   #endif   #ifdef ENCODE_DEBUG    data->debug = debug;
3736:    return 0;    }    - #ifdef PIKE_THREADS -  add_ref(Pike_interpreter.thread_id); - #endif -  +     data->decoded=allocate_mapping(128);       current_decode = data;