MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / wait

Method wait

tiledb/common/thread_pool/thread_pool.h:109–117  ·  view source on GitHub ↗

* Wait in the threadpool for this task to be ready. */

Source from the content-addressed store, hash-verified

107 * Wait in the threadpool for this task to be ready.
108 */
109 Status wait() {
110 if (tp_ == nullptr) {
111 throw std::runtime_error("Cannot wait, threadpool is not initialized.");
112 } else if (!f_.valid()) {
113 throw std::runtime_error("Cannot wait, task is invalid.");
114 } else {
115 return tp_->wait(*this);
116 }
117 }
118
119 /**
120 * Is this task valid. Wait can only be called on vaid tasks.

Callers 1

waitMethod · 0.45

Calls 1

validMethod · 0.45

Tested by

no test coverage detected