ARCS6
AR6-REV.24062600
読み取り中…
検索中…
一致する文字列を見つけられません
ARCS6
lib
CPUSettings.hh
[詳解]
1
8
//
9
// Copyright (C) 2011-2019 Yuki YOKOKURA
10
// This program is free software;
11
// you can redistribute it and/or modify it under the terms of the FreeBSD License.
12
// For details, see the License.txt file.
13
14
#ifndef CPUSETTINGS
15
#define CPUSETTINGS
16
17
#include <pthread.h>
18
19
namespace
ARCS {
// ARCS名前空間
21
class
CPUSettings
{
22
public
:
23
static
void
SetCPUandPolicy
(
const
pthread_t FuncName,
const
unsigned
int
CPUnum,
const
int
Policy);
24
25
private
:
26
CPUSettings
() =
delete
;
27
CPUSettings
(
CPUSettings
&& right) =
delete
;
28
~CPUSettings
() =
delete
;
29
CPUSettings
(
const
CPUSettings
&) =
delete
;
30
const
CPUSettings
& operator=(
const
CPUSettings
&) =
delete
;
31
};
32
}
33
34
#endif
35
ARCS::CPUSettings
CPU設定クラス
Definition
CPUSettings.hh:21
ARCS::CPUSettings::SetCPUandPolicy
static void SetCPUandPolicy(const pthread_t FuncName, const unsigned int CPUnum, const int Policy)
スレッドを動作させるCPUコアとポリシーを設定する関数
Definition
CPUSettings.cc:36
構築:
1.11.0