Branch: Tag:

2001-04-07

2001-04-07 07:38:26 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

added mutex code to each memory object (for --with-unlocked)

Rev: src/array.c:1.103
Rev: src/array.h:1.33
Rev: src/constants.c:1.29
Rev: src/constants.h:1.17
Rev: src/mapping.h:1.36
Rev: src/multiset.c:1.33
Rev: src/multiset.h:1.18
Rev: src/object.c:1.167
Rev: src/object.h:1.61
Rev: src/pike_cpulib.c:1.2
Rev: src/pike_cpulib.h:1.9
Rev: src/pike_threadlib.h:1.1
Rev: src/program.c:1.309
Rev: src/program.h:1.123
Rev: src/svalue.h:1.87
Rev: src/threads.h:1.113

17:   #include "gc.h"   #include "security.h"    - RCSID("$Id: multiset.c,v 1.32 2001/01/31 13:19:01 grubba Exp $"); + RCSID("$Id: multiset.c,v 1.33 2001/04/07 07:38:24 hubbe Exp $");      struct multiset *first_multiset;   
41:    struct multiset *l;    l=ALLOC_STRUCT(multiset);    GC_ALLOC(l); -  l->refs = 1; +  INIT_PIKE_MEMOBJ(l);    l->ind=ind;    DOUBLELINK(first_multiset, l);    -  INITIALIZE_PROT(l); -  +     return l;   }   
61:   #endif       free_array(l->ind); -  FREE_PROT(l); +  EXIT_PIKE_MEMOBJ(l);       DOUBLEUNLINK(first_multiset, l);