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

Method WorkerExecute

be/src/util/thread-pool.h:263–267  ·  view source on GitHub ↗

This is called by the worker thread and handles the mechanics of notifying the caller and conveying status when Execute() completes.

Source from the content-addressed store, hash-verified

261 /// This is called by the worker thread and handles the mechanics of notifying
262 /// the caller and conveying status when Execute() completes.
263 void WorkerExecute() {
264 Status status = Execute();
265 DCHECK(!done_promise_.IsSet());
266 discard_result(done_promise_.Set(status));
267 }
268
269 /// Wait for the operation to complete or time out with the specified limit
270 /// 'timeout_millis' given that the caller has already waited 'time_used_millis'.

Callers 1

WorkerMethod · 0.80

Calls 3

discard_resultFunction · 0.85
IsSetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected