[zeromq-dev] Problems with 2.0.6 poll using C++ api
Martin Sustrik
sustrik at 250bpm.com
Fri Mar 19 12:34:49 CET 2010
On 19/3/2010, "gonzalo diethelm" <gdiethelm at dcv.cl> wrote:
>Finally, I looked at thread_t::equal (). It compares the two thread ids
>with ==; however, for non-Windows Oss, the thread ids are of type
>pthread_t, and those objects should be compared with pthread_equal ().
>Therefore, I would change line 46 in thread.cpp to this:
>
>bool zmq::thread_t::equal (id_t id1_, id_t id2_)
>{
>#ifdef ZMQ_HAVE_WINDOWS
> return id1_ == id2_;
>#else
> return pthread_equal (id1_, id2_);
>#endif
>}
It's already done that way. Check thread.cpp. pthread_t::equal is
resolved as either == (on Windows) or pthread_equal (on POSIX systems).
The problem must be somewhere else...
Martin
More information about the zeromq-dev
mailing list