Go to the source code of this file.
|
| CORE_API void | MainThreadCall (dispatch_block_t Block, bool const bWait=true, NSString *WaitMode=NSDefaultRunLoopMode) |
| |
| CORE_API void | MainThreadCall (dispatch_block_t Block, NSString *WaitMode, bool const bWait=true) |
| |
| template<typename ReturnType > |
| ReturnType | MainThreadReturn (ReturnType(^Block)(void), NSString *WaitMode=NSDefaultRunLoopMode) |
| |
| CORE_API void | GameThreadCall (dispatch_block_t Block, bool const bWait=true, NSArray *SendModes=@[NSDefaultRunLoopMode]) |
| |
| CORE_API void | GameThreadCall (dispatch_block_t Block, NSArray *SendModes, bool const bWait=true) |
| |
| template<typename ReturnType > |
| ReturnType | GameThreadReturn (ReturnType(^Block)(void), NSArray *SendModes=@[NSDefaultRunLoopMode]) |
| |
| CORE_API void | RunGameThread (id Target, SEL Selector) |
| |
| CORE_API void | ProcessGameThreadEvents (void) |
| |
◆ MAC_SEPARATE_GAME_THREAD
| #define MAC_SEPARATE_GAME_THREAD 1 |
◆ GameThreadCall() [1/2]
Schedule a block to be executed on GameThread
- Parameters
-
| Block | - The block to execute on GameThread, example: ^{ UE_LOG(LogMac, Log, TEXT("Hello GameThread"); } |
| bWait | - Wether or not to wait until the block is executed. |
| SendModes | - The modes for the block we are scheduling, this is use to specify who can execute the scheduled block. |
Be careful to make sure that GameThread will be processing at least one of the modes or you could end up causing a deadlock by preventing further progress.
◆ GameThreadCall() [2/2]
◆ GameThreadReturn()
Schedule a block to be executed on GameThread with a return value.
- Parameters
-
| Block | - The block to execute on GameThread, example: ^{ return 5; } |
| SendModes | - The modes for the block we are scheduling, this is use to specify who can execute the scheduled block. |
Be careful to make sure that GameThread will be processing at least one of the modes or you could end up causing a deadlock by preventing further progress.
◆ MainThreadCall() [1/2]
Schedule a block to be executed on MainThread.
- Parameters
-
| Block | - The block to execute on MainThread, example: ^{ UE_LOG(LogMac, Log, TEXT("Hello MainThread"); } |
| bWait | - Wether or not to wait until the block is executed. |
| WaitMode | - The mode we are allowed to execute while waiting. (Only use when bWait = true) |
Avoid being too restrictive on the WaitMode or you could cause a deadlock by preventing further progress.
◆ MainThreadCall() [2/2]
◆ MainThreadReturn()
Schedule a block to be executed on MainThread with a return value.
- Parameters
-
| Block | - The block to execute on MainThread, example: ^{ return 5; } |
| WaitMode | - The mode we are allowed to execute while waiting. |
Avoid being too restrictive on the WaitMode or you could cause a deadlock by preventing further progress.
◆ ProcessGameThreadEvents()
◆ RunGameThread()
◆ GMacMainThreadId
Thread ID of the Mac MainThread
◆ UnrealCloseEventMode
◆ UnrealFullscreenEventMode
◆ UnrealIMEEventMode
◆ UnrealNilEventMode
◆ UnrealResizeEventMode
◆ UnrealShowEventMode