MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / start

Method start

core/os/thread.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80Thread::ID Thread::start(Thread::Callback p_callback, void *p_user, const Settings &p_settings) {
81 ERR_FAIL_COND_V_MSG(id != UNASSIGNED_ID, UNASSIGNED_ID, "A Thread object has been re-started without wait_to_finish() having been called on it.");
82 id = id_counter.increment();
83 thread = THREADING_NAMESPACE::thread(&Thread::callback, id, p_settings, p_callback, p_user);
84 return id;
85}
86
87bool Thread::is_started() const {
88 return id != UNASSIGNED_ID;

Callers 8

RemoteDebuggerPeerTCPMethod · 0.45
connect_to_hostMethod · 0.45
IPMethod · 0.45
get_md5Method · 0.45
get_multiple_md5Method · 0.45
get_sha256Method · 0.45
_add_taskMethod · 0.45
initMethod · 0.45

Calls 1

incrementMethod · 0.45

Tested by

no test coverage detected