Snap Live SDK
8.2.1
|
Base interface for thread priority/affinity management. More...
#include <ThreadManager.h>
Public Types | |
enum | eSchedulerPolicy { SCHED_POLICY_OTHER, SCHED_POLICY_FIFO, SCHED_POLICY_RR } |
scheduler policies available for thread priority management More... | |
Public Member Functions | |
virtual AUDIOSDK_Error | SetThreadCPUAffinity (size_t affinity_mask)=0 |
Set CPU affinity for all threads created by the watermarking library. More... | |
virtual AUDIOSDK_Error | SetThreadPriority (eSchedulerPolicy policy, int priority)=0 |
Set thread priority on all threads created by the SDK. More... | |
Base interface for thread priority/affinity management.
Interface for managing threads affinity and priority
|
pure virtual |
Set CPU affinity for all threads created by the watermarking library.
This method allows specifying on which CPU(s) all the threads of the watermarking library are allowed to run
[in] | affinity_mask | CPU affinity mask (CPU(s)on which threads are allowed to run) |
|
pure virtual |
Set thread priority on all threads created by the SDK.
This method allows setting the priority for all threads created by the SDK. All the thread used by the SDK will have the same priority. By default, all process threads are running under the SCHED_POLICY_OTHER policy with a priority value of 0.
[in] | policy | scheduler policy to be used by SDK threads |
[in] | priority | priority to be used for given policy |