X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fintrusive_refcount.cci;h=99b23bc189503f456a014261fef8df6632c73696;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=8050aadf170e07dc5ed31d8bb4ba959cfbe74e34;hpb=47368f306a577d1e46df69a7f729bd3893cbe5e7;p=senf.git diff --git a/Utils/intrusive_refcount.cci b/Utils/intrusive_refcount.cci index 8050aad..99b23bc 100644 --- a/Utils/intrusive_refcount.cci +++ b/Utils/intrusive_refcount.cci @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ //#include "intrusive_refcount.ih" // Custom includes -#include +#include "senfassert.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// @@ -45,9 +45,6 @@ prefix_ senf::intrusive_refcount_base::intrusive_refcount_base() : refcount_(0) {} -prefix_ senf::intrusive_refcount_base::~intrusive_refcount_base() -{} - prefix_ void senf::intrusive_refcount_base::add_ref() { ++refcount_; @@ -55,7 +52,9 @@ prefix_ void senf::intrusive_refcount_base::add_ref() prefix_ bool senf::intrusive_refcount_base::release() { - BOOST_ASSERT(refcount_>0); + SENF_ASSERT(refcount_>0 && + "senf::intrusive_refcount_base: Internal inconsistency: " + "Calling release on dead object."); return --refcount_ == 0; }