All Classes Namespaces Files Functions Variables Enumerations Enumerator
Public Types | Public Member Functions
qrk::Thread Class Reference

スレッド処理 More...

#include <Thread.h>

List of all members.

Public Types

enum  { Infinity = -1 }

Public Member Functions

 Thread (int(*fn)(void *), void *args)
 コンストラクタ
void run (int times=1)
 処理回数を指定してスレッドを起動
void stop (void)
 スレッドを停止
int wait (void)
 スレッドの終了を待つ
bool isRunning (void) const
 スレッドが動作中かを返す

Detailed Description

スレッド処理

Definition at line 19 of file Thread.h.


Constructor & Destructor Documentation

qrk::Thread::Thread ( int(*)(void *)  fn,
void *  args 
) [explicit]

コンストラクタ

Parameters:
[in,out]fn関数ポインタ
[in,out]argsスレッド関数への引数

Member Function Documentation

void qrk::Thread::run ( int  times = 1)

処理回数を指定してスレッドを起動

Parameters:
[in]times処理回数
void qrk::Thread::stop ( void  )

スレッドを停止

int qrk::Thread::wait ( void  )

スレッドの終了を待つ

Returns:
スレッドの戻り値
bool qrk::Thread::isRunning ( void  ) const

スレッドが動作中かを返す

Return values:
true動作中
false停止中

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