SetupOutputs(tv);
- TmThreadSetCPU(tv, DETECT_CPU_SET);
+ TmThreadSetCPU(tv, WORKER_CPU_SET);
#ifndef AFLFUZZ_PCAP_RUNMODE
if (TmThreadSpawn(tv) != TM_ECODE_OK) {
cpu = 1;
/* always create at least one thread */
- int thread_max = TmThreadGetNbThreads(DETECT_CPU_SET);
+ int thread_max = TmThreadGetNbThreads(WORKER_CPU_SET);
if (thread_max == 0)
thread_max = ncpus * threading_detect_ratio;
if (thread_max < 1)
/* add outputs as well */
SetupOutputs(tv_detect_ncpu);
- TmThreadSetCPU(tv_detect_ncpu, DETECT_CPU_SET);
+ TmThreadSetCPU(tv_detect_ncpu, WORKER_CPU_SET);
if (TmThreadSpawn(tv_detect_ncpu) != TM_ECODE_OK) {
SCLogError(SC_ERR_RUNMODE, "TmThreadSpawn failed");
/* Available cpus */
uint16_t ncpus = UtilCpuGetNumProcessorsOnline();
int nlive = LiveGetDeviceCount();
- int thread_max = TmThreadGetNbThreads(DETECT_CPU_SET);
+ int thread_max = TmThreadGetNbThreads(WORKER_CPU_SET);
/* always create at least one thread */
if (thread_max == 0)
thread_max = ncpus * threading_detect_ratio;
}
TmSlotSetFuncAppend(tv_detect_ncpu, tm_module, NULL);
- TmThreadSetCPU(tv_detect_ncpu, DETECT_CPU_SET);
+ TmThreadSetCPU(tv_detect_ncpu, WORKER_CPU_SET);
TmThreadSetGroupName(tv_detect_ncpu, "Detect");
SetupOutputs(tv);
- TmThreadSetCPU(tv, DETECT_CPU_SET);
+ TmThreadSetCPU(tv, WORKER_CPU_SET);
if (TmThreadSpawn(tv) != TM_ECODE_OK) {
SCLogError(SC_ERR_THREAD_SPAWN, "TmThreadSpawn failed");
uint16_t ncpus = UtilCpuGetNumProcessorsOnline();
int nqueue = LiveGetDeviceCount();
- int thread_max = TmThreadGetNbThreads(DETECT_CPU_SET);
+ int thread_max = TmThreadGetNbThreads(WORKER_CPU_SET);
/* always create at least one thread */
if (thread_max == 0)
thread_max = ncpus * threading_detect_ratio;
}
TmSlotSetFuncAppend(tv_detect_ncpu, tm_module, NULL);
- TmThreadSetCPU(tv_detect_ncpu, DETECT_CPU_SET);
+ TmThreadSetCPU(tv_detect_ncpu, WORKER_CPU_SET);
SetupOutputs(tv_detect_ncpu);
SetupOutputs(tv);
- TmThreadSetCPU(tv, DETECT_CPU_SET);
+ TmThreadSetCPU(tv, WORKER_CPU_SET);
if (TmThreadSpawn(tv) != TM_ECODE_OK) {
SCLogError(SC_ERR_RUNMODE, "TmThreadSpawn failed");