src/net/capture_engine.cpp
/**
 * Enqueue a parsed memcache command for stats processing.
 * @param MemcacheCommand mc the command to enqueue
 * @protected
 */
Enqueue a parsed memcache command for stats processing.
@param MemcacheCommand mc the command to enqueue
@protected
Enqueue a parsed memcache command for stats processing . @param MemcacheCommand mc the command to enqueue @protected
void CaptureEngine::enqueue(const MemcacheCommand &mc)
{
  Elem e(mc.getObjectKey(), mc.getObjectSize());
#ifdef _DEBUG
  logger->trace(CONTEXT,
               "Produced stat: %s, %d", e.first.c_str(), e.second);
#endif
  barrier_lock.lock();
  barrier->produce(e);
  barrier_lock.unlock();
}
void CaptureEngine :: enqueue ( const MemcacheCommand & mc ) { Elem e ( mc . getObjectKey ( ) , mc . getObjectSize ( ) ) ; #ifdef _DEBUG logger -> trace ( CONTEXT , " " , e . first . c_str ( ) , e . second ) ; #endif barrier_lock . lock ( ) ; barrier -> produce ( e ) ; barrier_lock . unlock ( ) ; }
Enqueue a parsed memcache command for stats processing.
Enqueue a parsed memcache command for stats processing .