Branch: Tag:

1997-03-12

1997-03-12 12:21:50 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

clone() renamed to clone_object()

Rev: src/ChangeLog:1.87
Rev: src/builtin_functions.c:1.33
Rev: src/interpret.c:1.35
Rev: src/modules/Gmp/mpz_glue.c:1.6
Rev: src/modules/Image/dct.c:1.3
Rev: src/modules/Image/font.c:1.3
Rev: src/modules/Image/image.c:1.3
Rev: src/modules/Image/matrix.c:1.2
Rev: src/modules/Image/operator.c:1.2
Rev: src/modules/Image/pattern.c:1.2
Rev: src/modules/Mysql/mysql.c:1.3
Rev: src/modules/Pipe/pipe.c:1.3
Rev: src/modules/Ssleay/ssleay.c:1.2
Rev: src/modules/_Crypto/cbc.c:1.6
Rev: src/modules/_Crypto/crypto.c:1.17
Rev: src/modules/_Crypto/pipe.c:1.6
Rev: src/modules/files/file.c:1.29
Rev: src/object.c:1.15
Rev: src/object.h:1.9
Rev: src/testsuite.in:1.36
Rev: src/threads.c:1.19

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.18 1997/03/01 01:41:06 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.19 1997/03/12 12:15:29 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;
99:    int tmp;    arg=ALLOC_STRUCT(thread_starter);    arg->args=aggregate_array(args); -  arg->id=clone(thread_id_prog,0); +  arg->id=clone_object(thread_id_prog,0);       tmp=th_create(&dummy,new_thread_func,arg);   
175:       pop_n_elems(args);    m=THIS_MUTEX; -  o=clone(mutex_key,0); +  o=clone_object(mutex_key,0);    mt_lock(& mutex_kluge);    THREADS_ALLOW();    while(m->key) co_wait(& m->condition, & mutex_kluge);
193:    int i=0;    pop_n_elems(args);    -  o=clone(mutex_key,0); +  o=clone_object(mutex_key,0);    m=THIS_MUTEX;    mt_lock(& mutex_kluge);    THREADS_ALLOW();
365:    if(!mutex_key)    fatal("Failed to initialize thread program!\n");    -  thread_id=clone(thread_id_prog,0); +  thread_id=clone_object(thread_id_prog,0);   }      void th_cleanup()