ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.15 by root, Sat Sep 16 13:11:20 2006 UTC vs.
Revision 1.16 by root, Fri Nov 17 19:40:54 2006 UTC

107 } 107 }
108}; 108};
109 109
110struct refcounted 110struct refcounted
111{ 111{
112 mutable int refcnt;
113 refcounted () : refcnt (0) { } 112 refcounted () : refcnt (0) { }
113// virtual ~refcounted ();
114 void refcnt_inc () { ++refcnt; } 114 void refcnt_inc () { ++refcnt; }
115 void refcnt_dec () { --refcnt; } 115 void refcnt_dec () { --refcnt; }
116 bool dead () { return refcnt == 0; }
117 mutable int refcnt;
118#if 0
119private:
120 static refcounted *rc_first;
121 refcounted *rc_next;
122#endif
116}; 123};
117 124
118template<class T> 125template<class T>
119struct refptr 126struct refptr
120{ 127{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines