< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
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 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 |