mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Merge pull request #3537 from philippeleite/patch-2
pthread_equal to compare thread ids
This commit is contained in:
commit
1fdb152b9d
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user