mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
trunk/branch integration: VxWorks & Wince
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Thread_WIN32.h
|
||||
//
|
||||
// $Id: //poco/Main/Foundation/include/Poco/Thread_WIN32.h#8 $
|
||||
// $Id: //poco/1.4/Foundation/include/Poco/Thread_WIN32.h#1 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Threading
|
||||
@@ -51,6 +51,7 @@ namespace Poco {
|
||||
class Foundation_API ThreadImpl
|
||||
{
|
||||
public:
|
||||
typedef DWORD TIDImpl;
|
||||
typedef void (*Callable)(void*);
|
||||
|
||||
#if defined(_DLL)
|
||||
@@ -81,6 +82,7 @@ public:
|
||||
ThreadImpl();
|
||||
~ThreadImpl();
|
||||
|
||||
TIDImpl tidImpl() const;
|
||||
void setPriorityImpl(int prio);
|
||||
int getPriorityImpl() const;
|
||||
void setOSPriorityImpl(int prio);
|
||||
@@ -98,7 +100,8 @@ public:
|
||||
static void sleepImpl(long milliseconds);
|
||||
static void yieldImpl();
|
||||
static ThreadImpl* currentImpl();
|
||||
|
||||
static TIDImpl currentTidImpl();
|
||||
|
||||
protected:
|
||||
#if defined(_DLL)
|
||||
static DWORD WINAPI runnableEntry(LPVOID pThread);
|
||||
@@ -144,6 +147,7 @@ private:
|
||||
Runnable* _pRunnableTarget;
|
||||
CallbackData _callbackTarget;
|
||||
HANDLE _thread;
|
||||
DWORD _threadId;
|
||||
int _prio;
|
||||
int _stackSize;
|
||||
|
||||
@@ -202,6 +206,12 @@ inline int ThreadImpl::getStackSizeImpl() const
|
||||
}
|
||||
|
||||
|
||||
inline ThreadImpl::TIDImpl ThreadImpl::tidImpl() const
|
||||
{
|
||||
return _threadId;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Poco
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user