Re: Coding question

2010-01-15 Thread John Plevyak
Yes. Those cases were there to eliminate the unused variable warnings if (for example) the mutex was unused or the CACHE_TRY_LOCK became a noop. A lot of cases where variables might or might not have been used have been cleaned up or NOWARN_UNUSED(x) substituated (which results in (void)x)) or N

Coding question

2010-01-14 Thread D.J. Stachniak
Hi all, I was reading through some of the RAM cache code and stumbled across this: http://svn.apache.org/repos/asf/incubator/trafficserver/traffic/branches/dev /iocore/cache/RamCache.cc int RamCache::get_lock(INK_MD5 * key, Ptr *ret_data, EThread * t, inku32 auxkey1, inku32 auxkey2) {