mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 21:50:49 +01:00
Preliminary Android support
Some small changes to prepare a cross-compilation for the Android platform Signed-off-by: Ghislain Putois <ghpu@infonie.fr> Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
committed by
Martin Sustrik
parent
0354d4d37f
commit
85851d3127
@@ -59,15 +59,15 @@ extern "C"
|
||||
{
|
||||
static void *thread_routine (void *arg_)
|
||||
{
|
||||
#if !defined ZMQ_HAVE_OPENVMS
|
||||
// Following code will guarantee more predictable latecnies as it'll
|
||||
#if !defined ZMQ_HAVE_OPENVMS && !defined ZMQ_HAVE_ANDROID
|
||||
// Following code will guarantee more predictable latencies as it'll
|
||||
// disallow any signal handling in the I/O thread.
|
||||
sigset_t signal_set;
|
||||
int rc = sigfillset (&signal_set);
|
||||
errno_assert (rc == 0);
|
||||
rc = pthread_sigmask (SIG_BLOCK, &signal_set, NULL);
|
||||
posix_assert (rc);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
zmq::thread_t *self = (zmq::thread_t*) arg_;
|
||||
self->tfn (self->arg);
|
||||
|
||||
Reference in New Issue
Block a user