Merge pull request #3537 from philippeleite/patch-2

pthread_equal to compare thread ids
This commit is contained in:
Luca Boccassi 2019-06-11 09:05:51 +01:00 committed by GitHub
commit 1fdb152b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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