bug in identifying current thread fixed

This commit is contained in:
Martin Sustrik
2009-08-29 10:32:21 +02:00
parent 6996ef6f1a
commit 3666a49022
4 changed files with 40 additions and 6 deletions

View File

@@ -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