summaryrefslogtreecommitdiff
path: root/src/thread.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-08-29 10:32:21 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-08-29 10:32:21 +0200
commit3666a49022f84b3d1888f630a78f3f8f28aadde1 (patch)
tree2128a29c8095966abbed6b74b0024ee6ff4b349d /src/thread.hpp
parent6996ef6f1a0a50a754608df9444e425d0900b143 (diff)
bug in identifying current thread fixed
Diffstat (limited to 'src/thread.hpp')
-rw-r--r--src/thread.hpp9
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