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

Method num_optional_threads

be/src/runtime/thread-resource-mgr.h:159–159  ·  view source on GitHub ↗

Returns the number of thread resources returned by successful calls to TryAcquireThreadToken.

Source from the content-addressed store, hash-verified

157 /// Returns the number of thread resources returned by successful calls
158 /// to TryAcquireThreadToken.
159 int num_optional_threads() const { return num_threads_.Load() >> OPTIONAL_SHIFT; }
160
161 /// Returns the total number of thread resources for this pool
162 /// (i.e. num_optional_threads + num_required_threads).

Callers 1

TESTFunction · 0.80

Calls 1

LoadMethod · 0.45

Tested by 1

TESTFunction · 0.64