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/app_thread.hpp | |
parent | 6996ef6f1a0a50a754608df9444e425d0900b143 (diff) |
bug in identifying current thread fixed
Diffstat (limited to 'src/app_thread.hpp')
-rw-r--r-- | src/app_thread.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/app_thread.hpp b/src/app_thread.hpp index e45b1b2..0f95de9 100644 --- a/src/app_thread.hpp +++ b/src/app_thread.hpp @@ -25,6 +25,7 @@ #include "stdint.hpp" #include "object.hpp" #include "ypollset.hpp" +#include "thread.hpp" namespace zmq { @@ -69,10 +70,12 @@ namespace zmq typedef std::vector <class socket_base_t*> sockets_t; sockets_t sockets; + // If false, app_thread_t object is not associated with any OS thread. + // In such case, 'tid' member contains a bogus value. + bool associated; + // Thread ID associated with this slot. - // TODO: Virtualise pid_t! - // TODO: Check whether getpid returns unique ID for each thread. - int tid; + thread_t::id_t tid; // App thread's signaler object. ypollset_t pollset; |