Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
MultiThreadTest () | |
void | InserterThread (int arg) |
void | RemoverThread () |
void | Run () |
Private Types | |
typedef vector< shared_ptr < thread > > | ThreadVector |
Private Attributes | |
int | iterations_ |
int | nthreads_ |
BlockingQueue< int32_t > | queue_ |
mutex | lock_ |
map< int32_t, int > | gotten_ |
ThreadVector | threads_ |
int | num_inserters_ |
Definition at line 53 of file blocking-queue-test.cc.
|
private |
Definition at line 116 of file blocking-queue-test.cc.
|
inline |
Definition at line 55 of file blocking-queue-test.cc.
|
inline |
Definition at line 62 of file blocking-queue-test.cc.
References impala::BlockingQueue< T >::BlockingPut(), iterations_, lock_, num_inserters_, queue_, and impala::BlockingQueue< T >::Shutdown().
Referenced by Run().
|
inline |
Definition at line 75 of file blocking-queue-test.cc.
References impala::BlockingQueue< T >::BlockingGet(), gotten_, iterations_, lock_, and queue_.
Referenced by Run().
|
inline |
Definition at line 88 of file blocking-queue-test.cc.
References gotten_, InserterThread(), iterations_, lock_, nthreads_, RemoverThread(), and threads_.
Referenced by impala::TEST().
|
private |
Definition at line 126 of file blocking-queue-test.cc.
Referenced by RemoverThread(), and Run().
|
private |
Definition at line 118 of file blocking-queue-test.cc.
Referenced by InserterThread(), RemoverThread(), and Run().
|
private |
Definition at line 122 of file blocking-queue-test.cc.
Referenced by InserterThread(), RemoverThread(), and Run().
|
private |
Definition at line 119 of file blocking-queue-test.cc.
Referenced by Run().
|
private |
Definition at line 130 of file blocking-queue-test.cc.
Referenced by InserterThread().
|
private |
Definition at line 120 of file blocking-queue-test.cc.
Referenced by InserterThread(), and RemoverThread().
|
private |
Definition at line 128 of file blocking-queue-test.cc.
Referenced by Run().