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