Ray
3f1e59a7cf
Update copyright to 2024
11 months ago
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
1 year ago
Ray
2e02474b7a
Update core_loading_thread.c
1 year ago
Antonis Geralis
1dbcce8b56
Use explicit atomics ( #2849 )
* Use explicit atomics
* missed one
* use relaced ordering
1 year ago
Ray
b59fab7ee6
Update year to 2023
2 years ago
Antonis Geralis
ba38fe5b97
core_loading_thread example join thread on completion ( #2845 )
* core_loading_thread example join thread on completion
* error checking
2 years ago
murilluhenrique
eaa0b9102b
Fix typo ( #2696 )
2 years ago
Ray
4a9391ae83
REVIEWED: examples descriptions
2 years ago
Ray
c1b01c0d5d
Added new comment to examples
2 years ago
Ray
b525039e0a
Review ALL examples
5 years ago
Ray
424d3ca8d9
examples review
Redesigns, deletes and renames
Also noted authors propertly on contributed examples
5 years ago
Ahmad Fatoum
6681fd7df2
examples: core_loading_thread: fix race condition
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 .
5 years ago
Ahmad Fatoum
53d9beb534
examples: core_loading_thread: use symbolic names for state machine states
And while at it, use a switch clause to make the state machine
structure clearer.
5 years ago
Ray
34feacc148
new example: core_loading_thread
Data loading in a second thread with progress bar in main thread
5 years ago