mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-02 05:46:24 +01:00
Merge pull request #3537 from philippeleite/patch-2
pthread_equal to compare thread ids
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user