Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 799 Bytes

Threading.md

File metadata and controls

13 lines (8 loc) · 799 Bytes

Overview

If your platform has propretary/in house handling for thread functions, you must define your own implementations of the various threading classes to make it work.

For the Thread class, there's several points of interest. Looking at the source code (Todo: link to that here), we can see there's a struct called PlatformFunctions. This is partially used in the Android port, and it can be inferred based on how it is implemented that this is a specially defined structure for us to implement a thread adaptation layer. Of this, it allows us to define functions for setting thread priority, initializing a thread, wrapping a thread, and terminating a thread.

What MUST Be Implemented

  • The public functions:
    • make_main_thread()
    • release_main_thread()

What Is Optional