ARCS6 AR6-REV.24062600
読み取り中…
検索中…
一致する文字列を見つけられません
ARCS::ARCScommon クラス

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)
 現在時刻を取得する関数
 

詳解

ARCS共通静的関数クラス

関数詳解

◆ 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]CPUnumCPUコア番号(0スタート)
[in]PolicySCHED_FIFO とか SCHED_RR などのポリシー
[in]Priority優先順位(高い 0 ←→ 99 低い)

◆ Uint64ToString()

std::string ARCScommon::Uint64ToString ( uint64_t u,
const std::string & format )
static

整数値uint64_tから文字列へ

引数
[in]uuint64_t
[in]format表示フォーマット (printfと同一の書式)
戻り値
変換後の文字列

このクラス詳解は次のファイルから抽出されました: