Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Ndb_cluster_connection::set_num_recv_threads()

Description.  Set the number of receiver threads bound to the CPU (or CPUs) determined using set_recv_thread_cpu() and with the threshold set by set_recv_thread_activation_threshold().

This method should be invoked before trying to connect to any other nodes.


int set_num_recv_threads
      Uint32 num_recv_threads

Parameters.  The number of receive threads. The only supported value is 1.

Return value.  -1 indicates an error; any other value indicates success.