#include <windows.h>
#define AFFINITY_MASK_CPU00 (0x1)
#define AFFINITY_MASK_CPU01 (0x2)
#define AFFINITY_MASK_CPU02 (0x4)
#define AFFINITY_MASK_CPU03 (0x8)
#define AFFINITY_MASK_CPU04 (0x10)
#define AFFINITY_MASK_CPU05 (0x20)
#define AFFINITY_MASK_CPU06 (0x40)
#define AFFINITY_MASK_CPU07 (0x80)
#define AFFINITY_MASK_ALL (0xFF)
CriSint32 num_thread = 3;
CriUint32 affinity_masks[] = {
AFFINITY_MASK_CPU02,
AFFINITY_MASK_CPU03 | AFFINITY_MASK_CPU04,
AFFINITY_MASK_ALL,
}
lib_work_size = criMana_Calculate_PC(&lib_config);
lib_work = malloc(lib_work_size);
.....
criMana_Finalize_PC();
@ CRIMANA_THREAD_MODEL_MULTI
Definition: cri_mana.h:338
CriManaProcessorConfig_PC processor
Definition: cri_mana_pc.h:144
CriManaLibConfig mana
Definition: cri_mana_pc.h:140
CriUint32 max_decoder_handles
Definition: cri_mana.h:684
CriManaThreadModel thread_model
Definition: cri_mana.h:688
CriSint32 num_threads
Definition: cri_mana_pc.h:118
int priority
Definition: cri_mana_pc.h:126
const DWORD * affinity_masks
Definition: cri_mana_pc.h:122