MCPcopy Create free account
hub / github.com/apache/impala / head

Method head

be/src/util/internal-queue.h:82–86  ·  view source on GitHub ↗

Returns the element at the head of the list without dequeuing or nullptr if the queue is empty. This is O(1).

Source from the content-addressed store, hash-verified

80 /// Returns the element at the head of the list without dequeuing or nullptr
81 /// if the queue is empty. This is O(1).
82 T* head() const {
83 std::lock_guard<LockType> lock(lock_);
84 if (IsEmptyLocked()) return nullptr;
85 return reinterpret_cast<T*>(head_);
86 }
87
88 /// Returns the element at the end of the list without dequeuing or nullptr
89 /// if the queue is empty. This is O(1).

Callers 12

post_dataFunction · 0.80
__get_catalogdsMethod · 0.80
test_memzMethod · 0.80
get_and_check_statusMethod · 0.80
post_and_check_statusMethod · 0.80
test_healthz_endpointMethod · 0.80
TryDequeueMethod · 0.80
GetMaxToDequeueMethod · 0.80
PoolToJsonLockedMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 8

__get_catalogdsMethod · 0.64
test_memzMethod · 0.64
get_and_check_statusMethod · 0.64
post_and_check_statusMethod · 0.64
test_healthz_endpointMethod · 0.64
TESTFunction · 0.64