Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.17.18 

Description.  Set the level for activating the receiver thread bound by set_recv_thread_cpu(). Below this level, normal user threads are used to receive signals.

Signature. 

int set_recv_thread_activation_threshold
    (
      Uint32 threshold
    )

Parameters.  An integer threshold value. 16 or higher means that receive threads are never used as receivers. 0 means that the receive thread is always active, and that retains poll rights for its own exclusive use, effectively blocking all user threads from becoming receivers. In such cases care should be taken to ensure that the receive thread does not compete with the user thread for CPU resources; it is preferable for it to be locked to a CPU for its own exclusive use. The default is 8.

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


User Comments
Sign Up Login You must be logged in to post a comment.