The XS_IO_THREADS option shall set the size of the thread pool created by the given context to handle I/O operations. The minimum value for this option is 1.
The xs_setctxopt() function shall return zero if successful. Otherwise it shall return -1 and set errno to one of the values defined below.
EINVALThe requested option option_name is unknown, or the requested option_len or option_value is invalid.
EFAULTThe provided context was invalid.
Setting the number of I/O threads for a context to four..
void *context = xs_init (); int io_threads = 4; rc = xs_setctxopt (context, XS_IO_THREADS, &io_threads, sizeof (io_threads)); assert (rc == 0); /* The above call MUST be called before any socket is created in context */ void *socket = xs_socket (context, XS_PUB);
The Crossroads documentation was written by Martin Sustrik <[blue]email@example.com> and Martin Lucina <[blue]firstname.lastname@example.org>.
1. email@example.com mailto:firstname.lastname@example.org 2. email@example.com mailto:firstname.lastname@example.org
|Crossroads I/O 1&.2&.0||XS_SETCTXOPT (3)||04/03/2016|