- POCO_THREAD_STACK_SIZE macro

- few Thread modifications
- ThreadPool configurable stack size
This commit is contained in:
Aleksandar Fabijanic
2008-04-20 23:28:41 +00:00
parent 537ec8aca3
commit 9fd70bade2
11 changed files with 90 additions and 40 deletions

View File

@@ -87,8 +87,8 @@ public:
int getOSPriorityImpl() const;
static int getMinOSPriorityImpl();
static int getMaxOSPriorityImpl();
void setStackSizeImpl(std::size_t size);
std::size_t getStackSizeImpl() const;
void setStackSizeImpl(int size);
int getStackSizeImpl() const;
void startImpl(Runnable& target);
void startImpl(Callback target, void* pData = 0);
@@ -120,7 +120,7 @@ private:
CallbackData _callbackTarget;
HANDLE _thread;
int _prio;
std::size_t _stackSize;
int _stackSize;
static DWORD _currentKey;
};
@@ -165,13 +165,13 @@ inline void ThreadImpl::yieldImpl()
}
inline void ThreadImpl::setStackSizeImpl(std::size_t size)
inline void ThreadImpl::setStackSizeImpl(int size)
{
_stackSize = size;
}
inline std::size_t ThreadImpl::getStackSizeImpl() const
inline int ThreadImpl::getStackSizeImpl() const
{
return _stackSize;
}