Branch: Tag:

2000-12-01

2000-12-01 01:15:04 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

exported more identifiers so that Java may work with dynamic loading on Win32 (maybe)

Rev: src/array.c:1.96
Rev: src/error.c:1.64
Rev: src/errors.h:1.14
Rev: src/gc.c:1.142
Rev: src/interpret.c:1.175
Rev: src/lex.c:1.84
Rev: src/modules/Java/configure.in:1.20
Rev: src/modules/Java/jvm.c:1.29
Rev: src/object.c:1.153
Rev: src/svalue.c:1.88
Rev: src/threads.c:1.146
Rev: src/threads.h:1.106

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.145 2000/11/20 01:20:26 mast Exp $"); + RCSID("$Id: threads.c,v 1.146 2000/12/01 01:15:02 hubbe Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
208:   PMOD_EXPORT MUTEX_T interpreter_lock;   MUTEX_T thread_table_lock, interleave_lock;   struct program *mutex_key = 0; - struct program *thread_id_prog = 0; + PMOD_EXPORT struct program *thread_id_prog = 0;   struct program *thread_local_prog = 0;   #ifdef POSIX_THREADS   pthread_attr_t pattr;
414:   #endif       - void thread_table_insert(struct object *o) + PMOD_EXPORT void thread_table_insert(struct object *o)   {    struct thread_state *s = OBJ2THREAD(o);    unsigned INT32 h = thread_table_hash(&s->id);
439:    mt_unlock( & thread_table_lock );   }    - void thread_table_delete(struct object *o) + PMOD_EXPORT void thread_table_delete(struct object *o)   {    struct thread_state *s = OBJ2THREAD(o);   /* dumpmem("thread_table_delete",&s->id, sizeof(THREAD_T)); */
734:   }   #endif    - void f_this_thread(INT32 args) + PMOD_EXPORT void f_this_thread(INT32 args)   {    pop_n_elems(args);    ref_push_object(Pike_interpreter.thread_id);
1124:   #endif   }    - void f_thread_local(INT32 args) + PMOD_EXPORT void f_thread_local(INT32 args)   {    static INT32 thread_local_id = 0;