mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
some cosmetic changes
This commit is contained in:
@@ -54,7 +54,7 @@ class RunnableAdapter: public Runnable
|
||||
/// Usage:
|
||||
/// RunnableAdapter<MyClass> ra(myObject, &MyObject::doSomething));
|
||||
/// Thread thr;
|
||||
/// thr.Start(ra);
|
||||
/// thr.start(ra);
|
||||
{
|
||||
public:
|
||||
typedef void (C::*Callback)();
|
||||
|
||||
@@ -68,7 +68,7 @@ class Foundation_API Thread: private ThreadImpl
|
||||
/// The name of a thread can be changed at any time.
|
||||
{
|
||||
public:
|
||||
using ThreadImpl::Callback;
|
||||
using ThreadImpl::Callable;
|
||||
|
||||
enum Priority
|
||||
/// Thread priorities.
|
||||
@@ -140,7 +140,7 @@ public:
|
||||
void start(Runnable& target);
|
||||
/// Starts the thread with the given target.
|
||||
|
||||
void start(Callback target, void* pData = 0);
|
||||
void start(Callable target, void* pData = 0);
|
||||
/// Starts the thread with the given target and parameter.
|
||||
|
||||
void join();
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Poco {
|
||||
class Foundation_API ThreadImpl
|
||||
{
|
||||
public:
|
||||
typedef void (*Callback)(void*);
|
||||
typedef void (*Callable)(void*);
|
||||
|
||||
enum Priority
|
||||
{
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
Callback callback;
|
||||
Callable callback;
|
||||
void* pData;
|
||||
};
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
void setStackSizeImpl(int size);
|
||||
int getStackSizeImpl() const;
|
||||
void startImpl(Runnable& target);
|
||||
void startImpl(Callback target, void* pData = 0);
|
||||
void startImpl(Callable target, void* pData = 0);
|
||||
|
||||
void joinImpl();
|
||||
bool joinImpl(long milliseconds);
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
|
||||
protected:
|
||||
static void* runnableEntry(void* pThread);
|
||||
static void* functionEntry(void* pThread);
|
||||
static void* callableEntry(void* pThread);
|
||||
static int mapPrio(int prio);
|
||||
static int reverseMapPrio(int osPrio);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Poco {
|
||||
class Foundation_API ThreadImpl
|
||||
{
|
||||
public:
|
||||
typedef void (*Callback)(void*);
|
||||
typedef void (*Callable)(void*);
|
||||
|
||||
#if defined(_DLL)
|
||||
typedef DWORD (WINAPI *Entry)(LPVOID);
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
Callback callback;
|
||||
Callable callback;
|
||||
void* pData;
|
||||
};
|
||||
|
||||
@@ -90,7 +90,7 @@ public:
|
||||
void setStackSizeImpl(int size);
|
||||
int getStackSizeImpl() const;
|
||||
void startImpl(Runnable& target);
|
||||
void startImpl(Callback target, void* pData = 0);
|
||||
void startImpl(Callable target, void* pData = 0);
|
||||
|
||||
void joinImpl();
|
||||
bool joinImpl(long milliseconds);
|
||||
@@ -107,9 +107,9 @@ protected:
|
||||
#endif
|
||||
|
||||
#if defined(_DLL)
|
||||
static DWORD WINAPI functionEntry(LPVOID pThread);
|
||||
static DWORD WINAPI callableEntry(LPVOID pThread);
|
||||
#else
|
||||
static unsigned __stdcall functionEntry(void* pThread);
|
||||
static unsigned __stdcall callableEntry(void* pThread);
|
||||
#endif
|
||||
|
||||
void createImpl(Entry ent, void* pData);
|
||||
|
||||
Reference in New Issue
Block a user