summaryrefslogtreecommitdiffhomepage
path: root/examples/core/core_loading_thread.c
AgeCommit message (Collapse)Author
2024-01-02Update copyright to 2024Ray
2023-11-01REVIEWED: Potential code issues reported by CodeQL #3476Ray
2023-03-19Update core_loading_thread.cRay
2023-01-02Use explicit atomics (#2849)Antonis Geralis
* Use explicit atomics * missed one * use relaced ordering
2023-01-01Update year to 2023Ray
2022-12-31core_loading_thread example join thread on completion (#2845)Antonis Geralis
* core_loading_thread example join thread on completion * error checking
2022-09-16Fix typo (#2696)murilluhenrique
2022-07-20REVIEWED: examples descriptionsRay
2022-06-21Added new comment to examplesRay
2019-05-20Review ALL examplesRay
2019-05-14examples reviewRay
Redesigns, deletes and renames Also noted authors propertly on contributed examples
2019-05-04examples: core_loading_thread: fix race conditionAhmad Fatoum
A plain variable is insuffecient for inter-thread communication. Both the compiler and the processor may reorder accesses. The compiler could even cache dataLoaded with the result that STATE_FINISHED becomes unreachable. Fix this by using C11 atomic_bool, which guarantees sequential consistency. This fixes #827.
2019-05-04examples: core_loading_thread: use symbolic names for state machine statesAhmad Fatoum
And while at it, use a switch clause to make the state machine structure clearer.
2019-05-02new example: core_loading_threadRay
Data loading in a second thread with progress bar in main thread