X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.cci;h=d9dcfc0fbd63ac82bbdf43c80539993393d604b9;hb=9a988902090d28007578e93bffd809f6bd913155;hp=5a299df9dc9d318fdf8e23fe62ed23f350592ece;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Packets/Packet.cci b/Packets/Packet.cci index 5a299df..d9dcfc0 100644 --- a/Packets/Packet.cci +++ b/Packets/Packet.cci @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -50,13 +50,13 @@ prefix_ senf::impl::PacketImpl::~PacketImpl() // PacketImpl::add_ref and PacketImpl::release are only called from // intrusive_ptr_add_ref and intrusive_ptr_release prefix_ void senf::impl::PacketImpl::add_ref() -{ +{ ++refcount_; SATCOM_PKF_REFC_MSG("] PacketImpl::add_ref (" << this << "): refcount_ = " << refcount_ << "\n"); } prefix_ bool senf::impl::PacketImpl::release() -{ +{ BOOST_ASSERT( refcount_ > 0 ); --refcount_; SATCOM_PKF_REFC_MSG("] PacketImpl::release (" << this << "): refcount_ = " << refcount_ << "\n"); @@ -89,7 +89,7 @@ prefix_ std::ostream & senf::operator<<(std::ostream & os, Packet const & packet */ // These methods are called by the user codes Packet::ptr's. They -// refcount both the Packet and the owning PacketImpl. +// refcount both the Packet and the owning PacketImpl. prefix_ void senf::intrusive_ptr_add_ref(Packet const * p) { impl::PacketImpl::packet_add_ref(p); @@ -154,10 +154,10 @@ prefix_ senf::Packet::ptr senf::Packet::head() prefix_ senf::Packet::~Packet() { - // FIXME: This is bad ... we cannot check this since this - // assertion fails at the moment if the Packet constructor throws - // ... hrmpf ... we really need to initialize refcount_ to 0 and - // remove the 'false' argument to the ptr constructor in ::create + /** \fixme This is bad ... we cannot check this since this + assertion fails at the moment if the Packet constructor throws + ... hrmpf ... we really need to initialize refcount_ to 0 and + remove the 'false' argument to the ptr constructor in create */ // BOOST_ASSERT( !this->refcount_ && !this->impl_ ); SATCOM_PKF_REFC_MSG("] Packet::~Packet (" << this << ")\n"); } @@ -191,5 +191,8 @@ prefix_ bool senf::Packet::unlink() // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: