Used to track pending audio commands from the game thread. 更多...
#include <AudioThread.h>
Public 成员函数 | |
| void | BeginFence () |
| Adds a fence command to the audio command queue. 更多... | |
| void | Wait (bool bProcessGameThreadTasks=false) const |
| Waits for pending fence commands to retire. 更多... | |
Used to track pending audio commands from the game thread.
| void FAudioCommandFence::BeginFence | ( | ) |
Adds a fence command to the audio command queue.
Conceptually, the pending fence count is incremented to reflect the pending fence command. Once the rendering thread has executed the fence command, it decrements the pending fence count.
| void FAudioCommandFence::Wait | ( | bool | bProcessGameThreadTasks = false | ) | const |
Waits for pending fence commands to retire.
| bProcessGameThreadTasks,if | true we are on a short callstack where it is safe to process arbitrary game thread tasks while we wait |