[compiler-rt] Reland "SetThreadName implementation for Fuchsia" (#105179)
This commit is contained in:
parent
d7c84d7b71
commit
f47966b1de
@ -607,7 +607,11 @@ size_t PageSize() {
|
||||
}
|
||||
|
||||
void SetThreadName(std::thread &thread, const std::string &name) {
|
||||
// TODO ?
|
||||
if (zx_status_t s = zx_object_set_property(
|
||||
thread.native_handle(), ZX_PROP_NAME, name.data(), name.size());
|
||||
s != ZX_OK)
|
||||
Printf("SetThreadName for name %s failed: %s", name.c_str(),
|
||||
zx_status_get_string(s));
|
||||
}
|
||||
|
||||
} // namespace fuzzer
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user