diff options
| author | Ahmad Fatoum <ahmad@a3f.at> | 2019-05-04 19:02:50 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <ahmad@a3f.at> | 2019-05-04 21:23:19 +0200 |
| commit | 6681fd7df27e4229518f51dc4929e909d9e94917 (patch) | |
| tree | 64cf665fbcc175b36d261cd05d3b7ccd6616000a /src/external/lua/include | |
| parent | 53d9beb53486703ef66d0511b07bba32daf7dc60 (diff) | |
| download | raylib-6681fd7df27e4229518f51dc4929e909d9e94917.tar.gz raylib-6681fd7df27e4229518f51dc4929e909d9e94917.zip | |
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.
Diffstat (limited to 'src/external/lua/include')
0 files changed, 0 insertions, 0 deletions
