Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::ThreadImpl Class Reference

#include <Thread_WIN32.h>

+ Inheritance diagram for Poco::ThreadImpl:
+ Collaboration diagram for Poco::ThreadImpl:

Classes

class  CurrentThreadHolder
 

Public Types

enum  Priority {
  PRIO_LOWEST_IMPL = THREAD_PRIORITY_LOWEST , PRIO_LOW_IMPL = THREAD_PRIORITY_BELOW_NORMAL , PRIO_NORMAL_IMPL = THREAD_PRIORITY_NORMAL , PRIO_HIGH_IMPL = THREAD_PRIORITY_ABOVE_NORMAL ,
  PRIO_HIGHEST_IMPL = THREAD_PRIORITY_HIGHEST
}
 
enum  Policy { POLICY_DEFAULT_IMPL = 0 }
 
typedef DWORD TIDImpl
 
typedef void(* Callable) (void *)
 
typedef unsigned(__stdcall * Entry) (void *)
 

Public Member Functions

 ThreadImpl ()
 
 ~ThreadImpl ()
 
TIDImpl tidImpl () const
 
void setPriorityImpl (int prio)
 
int getPriorityImpl () const
 
void setOSPriorityImpl (int prio, int policy=0)
 
int getOSPriorityImpl () const
 
void setStackSizeImpl (int size)
 
int getStackSizeImpl () const
 
void startImpl (SharedPtr< Runnable > pTarget)
 
void joinImpl ()
 
bool joinImpl (long milliseconds)
 
bool isRunningImpl () const
 

Static Public Member Functions

static int getMinOSPriorityImpl (int policy)
 
static int getMaxOSPriorityImpl (int policy)
 
static void sleepImpl (long milliseconds)
 
static void yieldImpl ()
 
static ThreadImplcurrentImpl ()
 
static TIDImpl currentTidImpl ()
 

Protected Member Functions

void createImpl (Entry ent, void *pData)
 
void threadCleanup ()
 

Static Protected Member Functions

static unsigned __stdcall runnableEntry (void *pThread)
 

Private Attributes

SharedPtr< Runnable_pRunnableTarget
 
HANDLE _thread
 
DWORD _threadId
 
int _prio
 
int _stackSize
 

Static Private Attributes

static CurrentThreadHolder _currentThreadHolder
 

Detailed Description

Definition at line 30 of file Thread_WIN32.h.

Member Typedef Documentation

◆ Callable

typedef void(* Poco::ThreadImpl::Callable) (void *)

Definition at line 34 of file Thread_WIN32.h.

◆ Entry

typedef unsigned(__stdcall * Poco::ThreadImpl::Entry) (void *)

Definition at line 39 of file Thread_WIN32.h.

◆ TIDImpl

Definition at line 33 of file Thread_WIN32.h.

Member Enumeration Documentation

◆ Policy

Enumerator
POLICY_DEFAULT_IMPL 

Definition at line 51 of file Thread_WIN32.h.

◆ Priority

Enumerator
PRIO_LOWEST_IMPL 
PRIO_LOW_IMPL 
PRIO_NORMAL_IMPL 
PRIO_HIGH_IMPL 
PRIO_HIGHEST_IMPL 

Definition at line 42 of file Thread_WIN32.h.

Constructor & Destructor Documentation

◆ ThreadImpl()

Poco::ThreadImpl::ThreadImpl ( )

◆ ~ThreadImpl()

Poco::ThreadImpl::~ThreadImpl ( )

Member Function Documentation

◆ createImpl()

void Poco::ThreadImpl::createImpl ( Entry ent,
void * pData )
protected

◆ currentImpl()

static ThreadImpl * Poco::ThreadImpl::currentImpl ( )
static
+ Here is the caller graph for this function:

◆ currentTidImpl()

static TIDImpl Poco::ThreadImpl::currentTidImpl ( )
static
+ Here is the caller graph for this function:

◆ getMaxOSPriorityImpl()

int Poco::ThreadImpl::getMaxOSPriorityImpl ( int policy)
inlinestatic

Definition at line 144 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

◆ getMinOSPriorityImpl()

int Poco::ThreadImpl::getMinOSPriorityImpl ( int policy)
inlinestatic

Definition at line 138 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

◆ getOSPriorityImpl()

int Poco::ThreadImpl::getOSPriorityImpl ( ) const
inline

Definition at line 132 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

◆ getPriorityImpl()

int Poco::ThreadImpl::getPriorityImpl ( ) const
inline

Definition at line 126 of file Thread_WIN32.h.

◆ getStackSizeImpl()

int Poco::ThreadImpl::getStackSizeImpl ( ) const
inline

Definition at line 168 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

◆ isRunningImpl()

bool Poco::ThreadImpl::isRunningImpl ( ) const
+ Here is the caller graph for this function:

◆ joinImpl() [1/2]

void Poco::ThreadImpl::joinImpl ( )

◆ joinImpl() [2/2]

bool Poco::ThreadImpl::joinImpl ( long milliseconds)

◆ runnableEntry()

static unsigned __stdcall Poco::ThreadImpl::runnableEntry ( void * pThread)
staticprotected

◆ setOSPriorityImpl()

void Poco::ThreadImpl::setOSPriorityImpl ( int prio,
int policy = 0 )
+ Here is the caller graph for this function:

◆ setPriorityImpl()

void Poco::ThreadImpl::setPriorityImpl ( int prio)

◆ setStackSizeImpl()

void Poco::ThreadImpl::setStackSizeImpl ( int size)
inline

Definition at line 162 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

◆ sleepImpl()

void Poco::ThreadImpl::sleepImpl ( long milliseconds)
inlinestatic

Definition at line 150 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

◆ startImpl()

void Poco::ThreadImpl::startImpl ( SharedPtr< Runnable > pTarget)

◆ threadCleanup()

void Poco::ThreadImpl::threadCleanup ( )
protected

◆ tidImpl()

ThreadImpl::TIDImpl Poco::ThreadImpl::tidImpl ( ) const
inline

Definition at line 174 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

◆ yieldImpl()

void Poco::ThreadImpl::yieldImpl ( )
inlinestatic

Definition at line 156 of file Thread_WIN32.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _currentThreadHolder

CurrentThreadHolder Poco::ThreadImpl::_currentThreadHolder
staticprivate

Definition at line 119 of file Thread_WIN32.h.

◆ _prio

int Poco::ThreadImpl::_prio
private

Definition at line 116 of file Thread_WIN32.h.

◆ _pRunnableTarget

SharedPtr<Runnable> Poco::ThreadImpl::_pRunnableTarget
private

Definition at line 113 of file Thread_WIN32.h.

◆ _stackSize

int Poco::ThreadImpl::_stackSize
private

Definition at line 117 of file Thread_WIN32.h.

◆ _thread

HANDLE Poco::ThreadImpl::_thread
private

Definition at line 114 of file Thread_WIN32.h.

◆ _threadId

DWORD Poco::ThreadImpl::_threadId
private

Definition at line 115 of file Thread_WIN32.h.


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