nf_setOptions

Specifies the number of worker threads.
void nf_setOptions(DWORD nThreads, DWORD flags)

Parameters

nThreads
Number of worker threads for NF_EventHandler events.
flags
Reserved value, should be zero.

Remarks

The function can be called before nf_init. If it is called after the initialization, the changes are not applied until the library is reinitialized. By default nThreads = 1. It means that the events are indicated from a single thread. When nThreads=0 the code detects the number of processors and uses the equal number of worker threads.