diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-02-01 15:45:52 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-02-01 15:45:52 +0000 |
commit | 2712f0343ce5545a3c07f1686e3ffd53fa405612 (patch) | |
tree | 4968dc76a427ee4d877eae4002ad35000c30be8e /cpp/include/IceUtil/Thread.h | |
parent | fix for bug 799 (diff) | |
download | ice-2712f0343ce5545a3c07f1686e3ffd53fa405612.tar.bz2 ice-2712f0343ce5545a3c07f1686e3ffd53fa405612.tar.xz ice-2712f0343ce5545a3c07f1686e3ffd53fa405612.zip |
added id() back
Diffstat (limited to 'cpp/include/IceUtil/Thread.h')
-rw-r--r-- | cpp/include/IceUtil/Thread.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/Thread.h b/cpp/include/IceUtil/Thread.h index e1043183412..13830060c99 100644 --- a/cpp/include/IceUtil/Thread.h +++ b/cpp/include/IceUtil/Thread.h @@ -62,6 +62,16 @@ public: // void detach(); + // + // id() returns the Thread ID on Windows and the underlying pthread_t + // on POSIX platforms. + // +#ifdef _WIN32 + DWORD id() const; +#else + pthread_t id() const; +#endif + static void sleep(const Time&); static void yield(); |