X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fintrusive_refcount.hh;h=a0c36e0ffae9fbf001568f5bdea146fc754e653a;hb=9a988902090d28007578e93bffd809f6bd913155;hp=36a7564dbea8402a97497a9a344bf6108035527a;hpb=553781d9e9bce316dca24ac4f0c42e5613e849e0;p=senf.git diff --git a/Utils/intrusive_refcount.hh b/Utils/intrusive_refcount.hh index 36a7564..a0c36e0 100644 --- a/Utils/intrusive_refcount.hh +++ b/Utils/intrusive_refcount.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -36,15 +36,15 @@ namespace senf { /** \brief Reference count mixin for intrusive_ptr - This class provides a simple internally managed refcount and supplies the boost::intrusive_ptr - required interface. To make a class compatible with \c boost::intrusive_ptr, just derive - publicly from intrusive_refcount. + This class provides a simple internally managed refcount and supplies the boost::intrusive_ptr + required interface. To make a class compatible with \c boost::intrusive_ptr, just derive + publicly from intrusive_refcount. - Two additional benifits of using intrusive_refcount are - \li The object can access it's own refcount - \li It is valid and safe to convert a plain object pointer to an intrusive_ptr at any time - (not only after new) + Two additional benefits of using intrusive_refcount are + \li The object can access it's own refcount + \li It is valid and safe to convert a plain object pointer to an intrusive_ptr at any time + (not only after new) */ class intrusive_refcount : public boost::noncopyable @@ -59,7 +59,7 @@ namespace senf { protected: intrusive_refcount(); - + private: void add_ref(); bool release(); @@ -83,6 +83,8 @@ namespace senf { // Local Variables: // mode: c++ -// c-file-style: "senf" // fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: