Redigera

PartyManager::GetThreadAffinityMask

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

Retrieves the current set of processors on which internal Party library threads will run or are running as an affinity mask.

Syntax

static 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