OROCHI
 
Loading...
Searching...
No Matches
GxRenderDevice::GxRenderThread Class Reference

描画命令を発行するスレッドを管理します More...

#include <GxRenderDevice.h>

Inheritance diagram for GxRenderDevice::GxRenderThread:
Collaboration diagram for GxRenderDevice::GxRenderThread:

Protected Member Functions

操作
GX_FORCE_INLINE b32 waitStartEvent (s32 milliSecond=-1)
 開始イベント待ち
 
GX_FORCE_INLINE b32 setStartEvent (void)
 開始イベント開始
 
GX_FORCE_INLINE b32 waitCompleteEvent (s32 milliSecond=-1)
 完了イベント待ち
 
GX_FORCE_INLINE b32 setCompleteEvent (void)
 完了イベント開始
 
GX_FORCE_INLINE void setRequestStop (void)
 停止リクエスト設定
 
GX_FORCE_INLINE b32 isRequestStop (void) const
 停止リクエストチェック
 
void threadMain (void *pArgument) override
 描画ループ
 
- Protected Member Functions inherited from GxThread
virtual void createCallback (void)
 作成時のコールバック関数
 
void stop (void)
 停止(スレッド外からの呼び出し禁止)
 

Protected Attributes

メンバ変数
GxEvent _startEvent
 開始イベント
 
GxEvent _completeEvent
 完了イベント
 
b32 _requestStopFlag
 停止リクエストフラグ
 
- Protected Attributes inherited from GxThread
GxNativeThread _threadId
 スレッドID
 

Friends

定義
class GxRenderDevice
 

Additional Inherited Members

- Public Types inherited from GxThread
enum class  PRIORITY {
  LOW = -2 , BELOW , NORMAL , ABOVE ,
  HIGH , MAX = 5
}
 優先度 More...
 
- Public Member Functions inherited from GxThread
 GxThread (void)
 コンストラクタ
 
 ~GxThread (void) override
 デストラクタ
 
b32 isStop (void) const
 停止中か判定
 
constexpr u32 getIndex (void) const
 インデックスを取得
 
constexpr GxRandomgetRandomGenerator (void) const
 乱数発生器を取得
 
b32 create (void *pIn, PRIORITY priority, u32 stackSize, s32 cpuIndex=-1)
 作成
 
void suspend (void)
 サスペンド
 
void resume (void)
 サスペンドから復帰
 
- Public Member Functions inherited from GxClassBase
constexpr GxClassBase (void)
 コンストラクタ
 
constexpr GxClassBase (const GxClassBase &base)
 コピーコンストラクタ
 
 ~GxClassBase (void) override
 デストラクタ
 
- Public Member Functions inherited from GxClassBaseRoot
constexpr GxClassBaseRoot (void)
 コンストラクタ
 
constexpr GxClassBaseRoot (const GxClassBaseRoot &)
 コピーコンストラクタ
 
virtual ~GxClassBaseRoot (void)
 デストラクタ
 
constexpr GxClassBaseRootoperator= (const GxClassBaseRoot &)
 代入演算子
 
virtual GxRttigetRtti (void) const =0
 Rttiの取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 
- Static Public Member Functions inherited from GxThread
static GxThreadgetCurrentThread (void)
 カレントスレッドを取得
 
static GX_FORCE_INLINE void setFixThread (b32 on)
 スレッドのCPUを固定するか設定
 
static GX_FORCE_INLINE b32 isFixThread (void)
 スレッドのCPUを固定するか判定
 
static b32 casU32 (volatile u32 *pTarget, u32 oldValue, u32 newValue)
 符号なし32bit整数CAS(Compare-And-Swap)
 
static b32 casPointer (volatile void **ppTarget, void *pOld, void *pNew)
 ポインタCAS(Compare-And-Swap)
 
static void barrierMemory (void)
 メモリバリア
 
static void atomicExchangeU32 (volatile u32 *pTarget, u32 newValue)
 アトミックU32
 
static void sleep (u32 milliSecond)
 スリープ
 
- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 
- Static Public Attributes inherited from GxThread
static constexpr u32 THREAD_MAX = GxMath::VALUE_32
 スレッドの最大数
 
static constexpr u32 INVALID_INDEX = 0xFFFFFFFF
 無効スレッドインデックス
 
static constexpr u32 MAIN_THREAD_INDEX = 0
 メインスレッドインデックス
 
- Static Protected Attributes inherited from GxThread
static GxThread_pThread [THREAD_MAX] = {nullptr}
 スレッド自身のポインタ
 
static u32 _num = 0
 作ったスレッド数
 

Detailed Description

描画命令を発行するスレッドを管理します

描画スレッドクラス

Member Function Documentation

◆ threadMain()

void GxRenderDevice::GxRenderThread::threadMain ( void * pArgument)
overrideprotectedvirtual

描画ループ

Parameters
pArgument[in] 引数(未使用)

Implements GxThread.

Here is the call graph for this function:

The documentation for this class was generated from the following files: