Bug 1882972 [Linux] Enable pthread_setname_np() on FreeBSD r=emilio

Backport from 382e71ce1d

Differential Revision: https://phabricator.services.mozilla.com/D203430
This commit is contained in:
stransky 2024-03-04 13:48:08 +00:00
parent 2dde24b573
commit 730a513447

View File

@ -754,7 +754,7 @@ WaylandProxy::~WaylandProxy() {
}
void* WaylandProxy::RunProxyThread(WaylandProxy* aProxy) {
#ifdef __linux__
#if defined(__linux__) || defined(__FreeBSD__)
pthread_setname_np(pthread_self(), "WaylandProxy");
#endif
aProxy->Run();