#include <cafe/os.h> BOOL OSSetThreadAffinity(OSThread* thread, u16 affinity);
|thread||Pointer to thread control block.|
|affinity||Core affinity set via OR bitmask of the following values.
TRUE if the function succeeds. Otherwise,
Migrates a thread from one core to another core. A thread may have an affinity for more than 1 core. The thread must be asleep or not executing on any core for the call to succeed. The call may fail if the thread is currently executing.
You should not attempt to change the affinity for the default thread for a processor. When
OSSetThreadAffinity is called on a default thread for a processor, it
2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup pass.
2010/12/27 Initial version.