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.
2019-05-04 21:23:19 +02:00
..
2019-04-11 13:53:01 +02:00
2018-12-18 18:19:11 +01:00
2018-05-11 18:14:51 +02:00
2018-05-11 18:14:51 +02:00
2018-05-11 18:14:51 +02:00
2017-10-20 00:18:21 +02:00
2019-04-28 16:32:05 +01:00
2018-05-11 18:14:51 +02:00
2019-04-12 13:29:53 +02:00
2019-04-12 13:29:53 +02:00
2018-05-04 16:54:05 +02:00