… | |
… | |
136 | F_DESTROYED = 0x01, |
136 | F_DESTROYED = 0x01, |
137 | F_DEBUG_TRACE = 0x02, |
137 | F_DEBUG_TRACE = 0x02, |
138 | }; |
138 | }; |
139 | |
139 | |
140 | // object is delete'd after the refcount reaches 0 |
140 | // object is delete'd after the refcount reaches 0 |
|
|
141 | int ACC (RW, flags); |
141 | mutable int ACC (RW, refcnt); |
142 | mutable int ACC (RW, refcnt); |
142 | int ACC (RW, flags); |
|
|
143 | |
143 | |
144 | MTH void refcnt_inc () const { ++refcnt; } |
144 | MTH void refcnt_inc () const { ++refcnt; } |
145 | MTH void refcnt_dec () const { --refcnt; } |
145 | MTH void refcnt_dec () const { --refcnt; } |
146 | |
146 | |
147 | MTH int refcnt_cnt () const; |
147 | MTH int refcnt_cnt () const; |