Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::AtomicUtil Class Reference

#include <atomic.h>

Collaboration diagram for impala::AtomicUtil:

Static Public Member Functions

static void CpuWait ()
 
static void MemoryBarrier ()
 

Detailed Description

Definition at line 24 of file atomic.h.

Member Function Documentation

static void impala::AtomicUtil::CpuWait ( )
inlinestatic

Issues instruction to have the CPU wait, this is less busy (bus traffic etc) than just spinning. For example: while (1); should be: while (1) CpuWait();

Definition at line 32 of file atomic.h.

Referenced by impala::SpinLock::SlowAcquire().

static void impala::AtomicUtil::MemoryBarrier ( )
inlinestatic

Definition at line 36 of file atomic.h.

Referenced by impala::HdfsScanNode::ScannerThread().


The documentation for this class was generated from the following file: