ThreadStart.h (Firebird-3.0.2.32703-0.tar.bz2) | : | ThreadStart.h (Firebird-3.0.4.33054-0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 76 | skipping to change at line 76 | |||
class Thread | class Thread | |||
{ | { | |||
public: | public: | |||
#ifdef WIN_NT | #ifdef WIN_NT | |||
typedef HANDLE Handle; | typedef HANDLE Handle; | |||
#endif | #endif | |||
#ifdef USE_POSIX_THREADS | #ifdef USE_POSIX_THREADS | |||
typedef pthread_t Handle; | typedef pthread_t Handle; | |||
#endif | #endif | |||
static void start(ThreadEntryPoint* routine, void* arg, int priority_ arg, Handle* p_handle = NULL); | static ThreadId start(ThreadEntryPoint* routine, void* arg, int priority_ arg, Handle* p_handle = NULL); | |||
static void waitForCompletion(Handle& handle); | static void waitForCompletion(Handle& handle); | |||
static void kill(Handle& handle); | static void kill(Handle& handle); | |||
static bool isCurrent(const ThreadId threadId); | ||||
static ThreadId getId(); | static ThreadId getId(); | |||
static void sleep(unsigned milliseconds); | static void sleep(unsigned milliseconds); | |||
static void yield(); | static void yield(); | |||
}; | }; | |||
inline ThreadId getThreadId() | inline ThreadId getThreadId() | |||
{ | { | |||
return Thread::getId(); | return Thread::getId(); | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |