mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-27 03:18:59 +02:00
tests: Drop unnecessary volatile qualifiers from tests
These variables were already (correctly) accessed atomically. The `volatile` qualifier doesn’t help with that. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #600
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
static volatile int mtsafe_call_counter = 0; /* multi thread safe call counter */
|
||||
static int unsafe_call_counter = 0; /* single-threaded call counter */
|
||||
static int mtsafe_call_counter = 0; /* multi thread safe call counter, must be accessed atomically */
|
||||
static int unsafe_call_counter = 0; /* single-threaded call counter */
|
||||
static GCond sync_cond;
|
||||
static GMutex sync_mutex;
|
||||
|
||||
|
Reference in New Issue
Block a user