Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the current set of processors on which internal Party library threads will run or are running as an affinity mask.
Syntax
PartyError GetThreadAffinityMask(
PartyThreadId threadId,
uint64_t* threadAffinityMask
)
Parameters
threadId PartyThreadId
The type of internal Party library thread for which processor affinity should be retrieved.
threadAffinityMask uint64_t*
output
The output affinity mask for this type of Party library thread.
Return value
PartyError
c_partyErrorSuccess if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via GetErrorMessage().
Remarks
This retrieves the current processor affinity for internal Party library threads of a given type.
This method does not require Initialize() to have been called first.
A reported value of c_anyProcessor written to threadAffinityMask indicates that the thread is free to run on any processor.
Requirements
Header: Party.h
See also
PartyManager
PartyThreadId
PartyManager::SetThreadAffinityMask