diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-29 10:32:21 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-29 10:32:21 +0200 |
commit | 3666a49022f84b3d1888f630a78f3f8f28aadde1 (patch) | |
tree | 2128a29c8095966abbed6b74b0024ee6ff4b349d /src/thread.hpp | |
parent | 6996ef6f1a0a50a754608df9444e425d0900b143 (diff) |
bug in identifying current thread fixed
Diffstat (limited to 'src/thread.hpp')
-rw-r--r-- | src/thread.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/thread.hpp b/src/thread.hpp index 01f1f78..a1117b2 100644 --- a/src/thread.hpp +++ b/src/thread.hpp @@ -55,6 +55,15 @@ namespace zmq // Waits for thread termination. void stop (); +#ifdef ZMQ_HAVE_WINDOWS + typedef DWORD id_t; +#else + typedef pthread_t id_t; +#endif + + static id_t id (); + static bool equal (id_t id1_, id_t id2_); + private: #ifdef ZMQ_HAVE_WINDOWS |