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

Function thread_set_name

TactilityKernel/source/concurrent/thread.cpp:118–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void thread_set_name(Thread* thread, const char* name) {
119 check(name != nullptr);
120 thread->lock();
121 check(thread->state == THREAD_STATE_STOPPED);
122 thread->name = name;
123 thread->unlock();
124}
125
126void thread_set_stack_size(Thread* thread, size_t stack_size) {
127 thread->lock();

Callers 1

thread_alloc_fullFunction · 0.85

Calls 3

checkFunction · 0.50
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected