mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
-added Windows Embedded Compact 2013 support
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#include "Poco/ErrorHandler.h"
|
||||
#include <sstream>
|
||||
#include <ctime>
|
||||
#if defined(_WIN32_WCE)
|
||||
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
|
||||
#include "wce_time.h"
|
||||
#endif
|
||||
|
||||
@@ -89,7 +89,7 @@ PooledThread::PooledThread(const std::string& name, int stackSize):
|
||||
{
|
||||
poco_assert_dbg (stackSize >= 0);
|
||||
_thread.setStackSize(stackSize);
|
||||
#if defined(_WIN32_WCE)
|
||||
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
|
||||
_idleTime = wceex_time(NULL);
|
||||
#else
|
||||
_idleTime = std::time(NULL);
|
||||
@@ -156,7 +156,7 @@ int PooledThread::idleTime()
|
||||
{
|
||||
FastMutex::ScopedLock lock(_mutex);
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
|
||||
return (int) (wceex_time(NULL) - _idleTime);
|
||||
#else
|
||||
return (int) (time(NULL) - _idleTime);
|
||||
@@ -232,7 +232,7 @@ void PooledThread::run()
|
||||
}
|
||||
FastMutex::ScopedLock lock(_mutex);
|
||||
_pTarget = 0;
|
||||
#if defined(_WIN32_WCE)
|
||||
#if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
|
||||
_idleTime = wceex_time(NULL);
|
||||
#else
|
||||
_idleTime = time(NULL);
|
||||
|
||||
Reference in New Issue
Block a user