mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-03 03:57:49 +00:00
- POCO_THREAD_STACK_SIZE macro
- few Thread modifications - ThreadPool configurable stack size
This commit is contained in:
@@ -127,13 +127,13 @@ public:
|
||||
/// Returns the maximum operating system-specific priority value,
|
||||
/// which can be passed to setOSPriority().
|
||||
|
||||
void setStackSize(std::size_t size);
|
||||
void setStackSize(int size);
|
||||
/// Sets the thread's stack size in bytes.
|
||||
/// Setting the stack size to 0 will use the default stack size.
|
||||
/// Typically, the real stack size is rounded up to the nearest
|
||||
/// page size multiple.
|
||||
|
||||
std::size_t getStackSize() const;
|
||||
int getStackSize() const;
|
||||
/// Returns the thread's stack size in bytes.
|
||||
/// If the default stack size is used, 0 is returned.
|
||||
|
||||
@@ -272,13 +272,13 @@ inline int Thread::getMaxOSPriority()
|
||||
}
|
||||
|
||||
|
||||
inline void Thread::setStackSize(std::size_t size)
|
||||
inline void Thread::setStackSize(int size)
|
||||
{
|
||||
setStackSizeImpl(size);
|
||||
}
|
||||
|
||||
|
||||
inline std::size_t Thread::getStackSize() const
|
||||
inline int Thread::getStackSize() const
|
||||
{
|
||||
return getStackSizeImpl();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user