some cosmetic changes

This commit is contained in:
Aleksandar Fabijanic
2008-04-24 10:06:35 +00:00
parent 621c98d358
commit 2a93c3e84f
7 changed files with 20 additions and 20 deletions

View File

@@ -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)();

View File

@@ -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();

View File

@@ -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);

View File

@@ -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);