MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / join

Method join

TactilityFreeRtos/Include/Tactility/Thread.h:226–238  ·  view source on GitHub ↗

* @warning If this blocks forever, it might be because of the Thread, but it could also be because another task is blocking the CPU. */

Source from the content-addressed store, hash-verified

224 * @warning If this blocks forever, it might be because of the Thread, but it could also be because another task is blocking the CPU.
225 */
226 bool join(TickType_t timeout = kernel::MAX_TICKS, TickType_t pollInterval = 10) {
227 assert(getCurrent() != this);
228
229 TickType_t start_ticks = kernel::getTicks();
230 while (getTaskHandle()) {
231 kernel::delayTicks(pollInterval);
232 if (kernel::getTicks() - start_ticks > timeout) {
233 return false;
234 }
235 }
236
237 return true;
238 }
239
240 TaskHandle_t getTaskHandle() const { return taskHandle; }
241

Callers 15

get_properties_file_pathFunction · 0.80
write_defaultsFunction · 0.80
~UnPhoneFeaturesMethod · 0.80
read_sdk_jsonFunction · 0.80
get_sdk_dirFunction · 0.80
validate_local_sdksFunction · 0.80
get_sdk_root_dirFunction · 0.80
should_update_tool_jsonFunction · 0.80
update_tool_jsonFunction · 0.80
fetch_sdkconfig_filesFunction · 0.80
safe_extract_zipFunction · 0.80

Calls 2

getTicksFunction · 0.85
delayTicksFunction · 0.85

Tested by 2

test_compile_successFunction · 0.64
test_compile_invalid_dtsFunction · 0.64