Boost logo

Boost Users :

From: Patel Priyank-PPATEL1 (priyankpatel_at_[hidden])
Date: 2006-05-11 15:25:22

Hi Kobi,
I am using ACE_Mutex. Let me check ACE Guards (I know there is
ACE_Guard class), Is that what you mean?


From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Kobi
Sent: Thursday, May 11, 2006 11:09 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [multi_index] Core dump in multi-index
library !!

        Procedure * Procedure_Pool::find_by_id(int _id)
                Procedure_By_Id::iterator it =
                if (it != procedure_by_id_.end()) {
                        ACE_DEBUG((LM_DEBUG, "%N:%l Found procedure for
id: %d \n", _id));
                        return *it;
                ACE_DEBUG((LM_DEBUG, "%N:%l Not able to found procedure
for id: %d \n", _id));
                // return null
                return 0;

BTW, As a side note, I highly recommend you to use ACE Guards (RAII...)
for the mutex thing.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at