perf(threads): implement adjust_thread_priority for macOS and add set_thread_name (#4605)

This commit is contained in:
Andy Grundman 2026-01-22 19:38:09 -05:00 committed by GitHub
commit 3a12f96a86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 71 additions and 1 deletions

View file

@ -327,6 +327,10 @@ namespace platf {
// Unimplemented
}
void set_thread_name(const std::string &name) {
pthread_setname_np(pthread_self(), name.c_str());
}
void enable_mouse_keys() {
// Unimplemented
}