You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Modernize atomics
- Based on C++11's `atomic` - Reworked `SafeRefCount` (based on the rewrite by @hpvb) - Replaced free atomic functions by the new `SafeNumeric<T>` - Replaced wrong cases of `volatile bool` by the new `SafeFlag` - Platform-specific implementations no longer needed Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
This commit is contained in:
@@ -89,12 +89,12 @@ class RenderingServerDefault : public RenderingServer {
|
||||
void _thread_loop();
|
||||
|
||||
Thread::ID server_thread;
|
||||
volatile bool exit;
|
||||
SafeFlag exit;
|
||||
Thread thread;
|
||||
volatile bool draw_thread_up;
|
||||
SafeFlag draw_thread_up;
|
||||
bool create_thread;
|
||||
|
||||
uint64_t draw_pending;
|
||||
SafeNumeric<uint64_t> draw_pending;
|
||||
void _thread_draw(bool p_swap_buffers, double frame_step);
|
||||
void _thread_flush();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user