| 116 | } |
| 117 | |
| 118 | void 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 | |
| 126 | void thread_set_stack_size(Thread* thread, size_t stack_size) { |
| 127 | thread->lock(); |
no test coverage detected