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.14 by root, Thu Sep 14 18:13:02 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 refcounted () : refcnt (0) { }
113// virtual ~refcounted ();
114 void refcnt_inc () { ++refcnt; }
115 void refcnt_dec () { --refcnt; }
116 bool dead () { return refcnt == 0; }
112 mutable int refcnt; 117 mutable int refcnt;
113 refcounted () : refcnt (0) { } 118#if 0
114 void refcnt_inc () { ++refcnt; } 119private:
115 void refcnt_dec () { --refcnt; 120 static refcounted *rc_first;
116 if (refcnt < 0)abort();}//D 121 refcounted *rc_next;
122#endif
117}; 123};
118 124
119template<class T> 125template<class T>
120struct refptr 126struct refptr
121{ 127{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines