MCPcopy Create free account
hub / github.com/HexHive/NASS / SetThreadName

Function SetThreadName

fuzz/libfuzzer/FuzzerUtilLinux.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void SetThreadName(std::thread &thread, const std::string &name) {
44#if LIBFUZZER_LINUX || LIBFUZZER_FREEBSD
45 (void)pthread_setname_np(thread.native_handle(), name.c_str());
46#elif LIBFUZZER_NETBSD
47 (void)pthread_setname_np(thread.native_handle(), "%s", const_cast<char *>(name.c_str()));
48#endif
49}
50
51} // namespace fuzzer
52

Callers 1

RunInMultipleProcessesFunction · 0.70

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected