Unverified Commit 1fdb152b authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #3537 from philippeleite/patch-2

pthread_equal to compare thread ids
parents 22025872 8a02f707
......@@ -248,7 +248,7 @@ void zmq::thread_t::stop ()
bool zmq::thread_t::is_current_thread () const
{
return pthread_self () == _descriptor;
return bool( pthread_equal(pthread_self (), _descriptor) );
}
void zmq::thread_t::setSchedulingParameters (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment