17#ifndef Foundation_Thread_WIN32_INCLUDED
18#define Foundation_Thread_WIN32_INCLUDED
21#include "Poco/Foundation.h"
22#include "Poco/Runnable.h"
23#include "Poco/SharedPtr.h"
24#include "Poco/UnWindows.h"
39 typedef unsigned (
__stdcall *
Entry)(
void*);
93 if (
_slot == TLS_OUT_OF_INDEXES)
94 throw SystemException(
"cannot allocate thread context key");
106 TlsSetValue(
_slot, pThread);
152 Sleep(DWORD(milliseconds));
void set(ThreadImpl *pThread)
void setPriorityImpl(int prio)
void createImpl(Entry ent, void *pData)
int getPriorityImpl() const
void setStackSizeImpl(int size)
bool joinImpl(long milliseconds)
static unsigned __stdcall runnableEntry(void *pThread)
void setOSPriorityImpl(int prio, int policy=0)
SharedPtr< Runnable > _pRunnableTarget
void startImpl(SharedPtr< Runnable > pTarget)
int getOSPriorityImpl() const
static TIDImpl currentTidImpl()
static int getMaxOSPriorityImpl(int policy)
static void sleepImpl(long milliseconds)
unsigned(__stdcall * Entry)(void *)
int getStackSizeImpl() const
static CurrentThreadHolder _currentThreadHolder
bool isRunningImpl() const
static int getMinOSPriorityImpl(int policy)
static ThreadImpl * currentImpl()