2 * (c) 2008-2009 Technische Universität Dresden
3 * This file is part of TUD:OS and distributed under the terms of the
4 * GNU General Public License 2.
5 * Please see the COPYING-GPL-2 file for details.
15 void take() { ++_ref_cnt; }
16 unsigned long release() { return --_ref_cnt; }
18 unsigned long ref_cnt() const { return _ref_cnt; }
20 Ref_cnt_obj() : _ref_cnt(1) {}
23 unsigned long _ref_cnt;