mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 00:32:34 +08:00
pthread_equal to compare thread ids
I am trying to port ZeroMQ to z/OS USS and I faced several problems. One of them is this function "is_current_thread" trying to compare two thread ids with operator "==". I've changed the code to use the official function "pthread_equal" to compare thread ids and now it's working fine.
This commit is contained in:
parent
2202587267
commit
8a02f70706
@ -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…
x
Reference in New Issue
Block a user