UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GenericPlatformAffinity.h File Reference
#include "CoreTypes.h"
#include "Misc/EnumClassFlags.h"

Go to the source code of this file.

Classes

class  FGenericPlatformAffinity
 

Macros

#define MAKEAFFINITYMASK1(x)   ((1<<x))
 
#define MAKEAFFINITYMASK2(x, y)   ((1<<x)+(1<<y))
 
#define MAKEAFFINITYMASK3(x, y, z)   ((1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK4(w, x, y, z)   ((1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK5(v, w, x, y, z)   ((1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK6(u, v, w, x, y, z)   ((1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK7(t, u, v, w, x, y, z)   ((1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK8(s, t, u, v, w, x, y, z)   ((1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK9(r, s, t, u, v, w, x, y, z)   ((1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK10(q, r, s, t, u, v, w, x, y, z)   ((1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK11(p, q, r, s, t, u, v, w, x, y, z)   ((1<<p)+(1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK12(o, p, q, r, s, t, u, v, w, x, y, z)   ((1<<o)+(1<<p)+(1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 
#define MAKEAFFINITYMASK13(n, o, p, q, r, s, t, u, v, w, x, y, z)   ((1<<n)+(1<<o)+(1<<p)+(1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))
 

Enumerations

enum  EThreadPriority {
  TPri_Normal , TPri_AboveNormal , TPri_BelowNormal , TPri_Highest ,
  TPri_Lowest , TPri_SlightlyBelowNormal , TPri_TimeCritical , TPri_Num
}
 
enum class  EThreadCreateFlags : int8 { None = 0 , SMTExclusive = (1 << 0) }
 

Functions

 ENUM_CLASS_FLAGS (EThreadCreateFlags)
 

Macro Definition Documentation

◆ MAKEAFFINITYMASK1

#define MAKEAFFINITYMASK1 (   x)    ((1<<x))

◆ MAKEAFFINITYMASK10

#define MAKEAFFINITYMASK10 (   q,
  r,
  s,
  t,
  u,
  v,
  w,
  x,
  y,
 
)    ((1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK11

#define MAKEAFFINITYMASK11 (   p,
  q,
  r,
  s,
  t,
  u,
  v,
  w,
  x,
  y,
 
)    ((1<<p)+(1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK12

#define MAKEAFFINITYMASK12 (   o,
  p,
  q,
  r,
  s,
  t,
  u,
  v,
  w,
  x,
  y,
 
)    ((1<<o)+(1<<p)+(1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK13

#define MAKEAFFINITYMASK13 (   n,
  o,
  p,
  q,
  r,
  s,
  t,
  u,
  v,
  w,
  x,
  y,
 
)    ((1<<n)+(1<<o)+(1<<p)+(1<<q)+(1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK2

#define MAKEAFFINITYMASK2 (   x,
 
)    ((1<<x)+(1<<y))

◆ MAKEAFFINITYMASK3

#define MAKEAFFINITYMASK3 (   x,
  y,
 
)    ((1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK4

#define MAKEAFFINITYMASK4 (   w,
  x,
  y,
 
)    ((1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK5

#define MAKEAFFINITYMASK5 (   v,
  w,
  x,
  y,
 
)    ((1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK6

#define MAKEAFFINITYMASK6 (   u,
  v,
  w,
  x,
  y,
 
)    ((1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK7

#define MAKEAFFINITYMASK7 (   t,
  u,
  v,
  w,
  x,
  y,
 
)    ((1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK8

#define MAKEAFFINITYMASK8 (   s,
  t,
  u,
  v,
  w,
  x,
  y,
 
)    ((1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

◆ MAKEAFFINITYMASK9

#define MAKEAFFINITYMASK9 (   r,
  s,
  t,
  u,
  v,
  w,
  x,
  y,
 
)    ((1<<r)+(1<<s)+(1<<t)+(1<<u)+(1<<v)+(1<<w)+(1<<x)+(1<<y)+(1<<z))

Enumeration Type Documentation

◆ EThreadCreateFlags

enum class EThreadCreateFlags : int8
strong
Enumerator
None 
SMTExclusive 

◆ EThreadPriority

The list of enumerated thread priorities we support

Enumerator
TPri_Normal 
TPri_AboveNormal 
TPri_BelowNormal 
TPri_Highest 
TPri_Lowest 
TPri_SlightlyBelowNormal 
TPri_TimeCritical 
TPri_Num 

Function Documentation

◆ ENUM_CLASS_FLAGS()

ENUM_CLASS_FLAGS ( EThreadCreateFlags  )