summaryrefslogtreecommitdiff
path: root/src/thread.hpp
diff options
context:
space:
mode:
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