#include <kthread.h>
Inherited by BazisLib::Linux::BasicBlockDevice::WorkerThread.
Public Member Functions | |
KernelThread (const char *pszThreadName=NULL) | |
bool | Start () |
bool | Stop () |
virtual | ~KernelThread () |
Protected Member Functions | |
virtual int | ThreadBody ()=0 |
Static Protected Member Functions | |
static bool | StopPending (bool WaitIfNot=true) |
static void | WaitForStop () |
Static Private Member Functions | |
static int | ThreadCallback (void *pContext) |
Private Attributes | |
std::string | m_ThreadName |
task_struct * | m_pThread |
BazisLib::Linux::KernelThread::KernelThread | ( | const char * | pszThreadName = NULL |
) | [inline] |
virtual BazisLib::Linux::KernelThread::~KernelThread | ( | ) | [inline, virtual] |
bool BazisLib::Linux::KernelThread::Start | ( | ) | [inline] |
bool BazisLib::Linux::KernelThread::Stop | ( | ) | [inline] |
static bool BazisLib::Linux::KernelThread::StopPending | ( | bool | WaitIfNot = true |
) | [inline, static, protected] |
virtual int BazisLib::Linux::KernelThread::ThreadBody | ( | ) | [protected, pure virtual] |
Implemented in BazisLib::Linux::BasicBlockDevice::WorkerThread.
static int BazisLib::Linux::KernelThread::ThreadCallback | ( | void * | pContext | ) | [inline, static, private] |
static void BazisLib::Linux::KernelThread::WaitForStop | ( | ) | [inline, static, protected] |
task_struct* BazisLib::Linux::KernelThread::m_pThread [private] |
std::string BazisLib::Linux::KernelThread::m_ThreadName [private] |