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

[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