ARCS共通静的関数クラス
[詳解]
#include <ARCS6/sys/ARCScommon.hh>
|
static void | SetCPUandPolicy (const pthread_t FuncName, const unsigned int CPUnum, const int Policy, const int Priority) |
| スレッドを動作させるCPUとポリシーを設定する関数
|
|
static std::string | DoubleToString (double u, const std::string &format) |
| 浮動小数点から文字列へ (std::to_stringだとフォーマット指定できないぽいので仕方なく実装)
|
|
static std::string | Uint64ToString (uint64_t u, const std::string &format) |
| 整数値uint64_tから文字列へ
|
|
static std::string | GetNowTime (void) |
| 現在時刻を取得する関数
|
|
◆ DoubleToString()
std::string ARCScommon::DoubleToString |
( |
double | u, |
|
|
const std::string & | format ) |
|
static |
浮動小数点から文字列へ (std::to_stringだとフォーマット指定できないぽいので仕方なく実装)
- 引数
-
[in] | u | 浮動小数点数 |
[in] | format | 表示フォーマット (printfと同一の書式) |
- 戻り値
- 変換後の文字列
◆ GetNowTime()
std::string ARCScommon::GetNowTime |
( |
void | | ) |
|
|
static |
◆ SetCPUandPolicy()
void ARCScommon::SetCPUandPolicy |
( |
const pthread_t | FuncName, |
|
|
const unsigned int | CPUnum, |
|
|
const int | Policy, |
|
|
const int | Priority ) |
|
static |
スレッドを動作させるCPUとポリシーを設定する関数
- 引数
-
[in] | FuncName | スレッド関数ID |
[in] | CPUnum | CPUコア番号(0スタート) |
[in] | Policy | SCHED_FIFO とか SCHED_RR などのポリシー |
[in] | Priority | 優先順位(高い 0 ←→ 99 低い) |
◆ Uint64ToString()
std::string ARCScommon::Uint64ToString |
( |
uint64_t | u, |
|
|
const std::string & | format ) |
|
static |
整数値uint64_tから文字列へ
- 引数
-
[in] | u | uint64_t |
[in] | format | 表示フォーマット (printfと同一の書式) |
- 戻り値
- 変換後の文字列
このクラス詳解は次のファイルから抽出されました: