< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] about lock!


It’s only present to remove compiler warnings about unused variables.

 

From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of hongsion
Sent: Tuesday, November 21, 2006 4:26 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] about lock!

 

Hi all,

         I am studying Resiprocate source code recently, and I met this following code:

 

Fifo<Msg>::add(Msg* msg)

{

   Lock lock(mMutex); (void)lock;

   mFifo.push_back(msg);

   mSize++;

   mCondition.signal();

}

 

Could anyone tell me what “ (void)lock; “ mean?  Thanks!

 

Regards,

hongsion