Ray
3f1e59a7cf
Update copyright to 2024
1年前
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
1年前
Ray
2e02474b7a
Update core_loading_thread.c
2年前
Antonis Geralis
1dbcce8b56
Use explicit atomics ( #2849 )
* Use explicit atomics
* missed one
* use relaced ordering
2年前
Ray
b59fab7ee6
Update year to 2023
2年前
Antonis Geralis
ba38fe5b97
core_loading_thread example join thread on completion ( #2845 )
* core_loading_thread example join thread on completion
* error checking
2年前
murilluhenrique
eaa0b9102b
Fix typo ( #2696 )
2年前
Ray
4a9391ae83
REVIEWED: examples descriptions
3年前
Ray
c1b01c0d5d
Added new comment to examples
3年前
Ray
b525039e0a
Review ALL examples
6年前
Ray
424d3ca8d9
examples review
Redesigns, deletes and renames
Also noted authors propertly on contributed examples
6年前
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 .
6年前
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.
6年前
Ray
34feacc148
new example: core_loading_thread
Data loading in a second thread with progress bar in main thread
6年前