Branch: Tag:

2001-03-23

2001-03-23 03:14:41 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

experimental code for SMP, does nothing exciting yet

Rev: src/acconfig.h:1.83
Rev: src/array.h:1.32
Rev: src/configure.in:1.508
Rev: src/global.h:1.59
Rev: src/mapping.h:1.35
Rev: src/multiset.h:1.17
Rev: src/object.h:1.60
Rev: src/pike_cpulib.h:1.1
Rev: src/program.h:1.121
Rev: src/stralloc.h:1.60
Rev: src/svalue.h:1.82

5:   \*/      /* -  * $Id: mapping.h,v 1.34 2000/12/16 05:45:44 marcus Exp $ +  * $Id: mapping.h,v 1.35 2001/03/23 03:14:40 hubbe Exp $    */   #ifndef MAPPING_H   #define MAPPING_H
70:   #define MAPPING_LOOP(m) \    for((e=0) DO_IF_DMALLOC( ?0:(debug_malloc_touch(m),debug_malloc_touch(m->data))) ;e<m->data->hashsize;e++) for(k=m->data->hash[e];k;k=k->next)    - #define free_mapping(M) do{ struct mapping *m_=(M); debug_malloc_touch(m_); if(!--m_->refs) really_free_mapping(m_); }while(0) + #define free_mapping(M) do{ struct mapping *m_=(M); debug_malloc_touch(m_); if(!sub_ref(m_)) really_free_mapping(m_); }while(0)      #define free_mapping_data(M) do{ \    struct mapping_data *md_=(M); \