blob: 8efee9653b592062dbe46a6b34bba205d85d6b4f [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMMON_THREADS_H_
#define COMMON_THREADS_H_
#include <sys/prctl.h> // For setting thread names.
namespace arc {
inline void SetThreadDebugName(const char* name) {
prctl(PR_SET_NAME, name, 0, 0, 0);
}
} // namespace arc
#endif // COMMON_THREADS_H_