basic implementation of fast_signal, enqueueing in the event_loop doesn't work yet.
[beacon-ss.git] / beacon / reference_countable.cpp
blobcc44b191886564bd6e3ab0a28d372ef7ce3a545c
1 /**
2 * beacon
3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
5 */
7 #include <beacon/reference_countable.hpp>
9 namespace beacon {
11 /**
12 * A function neccessary for the boost::intrusive_ptr to work.
14 void intrusive_ptr_add_ref(reference_countable * p) {
15 p->_ref_incr();
18 /**
19 * A function neccessary for the boost::intrusive_ptr to work.
21 void intrusive_ptr_release(reference_countable * p) {
22 p->_ref_decr();
25 /**
26 * A function neccessary for the beacon::intrusive_ptr to work.
28 void beacon_intrusive_ptr_add_ref(reference_countable * p) {
29 p->_ref_incr();
32 /**
33 * A function neccessary for the beacon::intrusive_ptr to work.
35 void beacon_intrusive_ptr_release(reference_countable * p) {
36 p->_ref_decr();
39 } //namespace beacon