Changeset View
Changeset View
Standalone View
Standalone View
src/util/threadnames.cpp
// Copyright (c) 2018 The Bitcoin Core developers | // Copyright (c) 2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <util/threadnames.h> | #include <util/threadnames.h> | ||||
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) | |||||
#include <pthread.h> | |||||
#include <pthread_np.h> | |||||
#endif | |||||
#include <thread> | #include <thread> | ||||
#ifdef HAVE_SYS_PRCTL_H | #ifdef HAVE_SYS_PRCTL_H | ||||
#include <sys/prctl.h> // For prctl, PR_SET_NAME, PR_GET_NAME | #include <sys/prctl.h> // For prctl, PR_SET_NAME, PR_GET_NAME | ||||
#endif | #endif | ||||
//! Set the thread's name at the process level. Does not affect the internal | //! Set the thread's name at the process level. Does not affect the internal | ||||
//! name. | //! name. | ||||
Show All 28 Lines |