diff options
author | Val Och <v19930312@gmail.com> | 2021-12-31 20:25:49 +0300 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-01-03 15:00:07 +0100 |
commit | c46078fa430bfcc25c26f33da991410372d44d03 (patch) | |
tree | fbffcd3e6658663c205c1ee23ab9dc0d79ddd3cc /tests/asynchronous/nowrapper.c-expected | |
parent | 9adade648eacc354cc6f4cf55f00e537a58d136f (diff) | |
download | vala-c46078fa430bfcc25c26f33da991410372d44d03.tar.gz |
codegen: Use __once instead of __volatile in generated code
This better reflects purpose of relevant variables, especially
given that they aren't volatile anymore on GLib 2.68+.
Diffstat (limited to 'tests/asynchronous/nowrapper.c-expected')
-rw-r--r-- | tests/asynchronous/nowrapper.c-expected | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/asynchronous/nowrapper.c-expected b/tests/asynchronous/nowrapper.c-expected index 8b388a6ff..7f1f988c5 100644 --- a/tests/asynchronous/nowrapper.c-expected +++ b/tests/asynchronous/nowrapper.c-expected @@ -145,13 +145,13 @@ ifoo_get_type_once (void) GType ifoo_get_type (void) { - static volatile gsize ifoo_type_id__volatile = 0; - if (g_once_init_enter (&ifoo_type_id__volatile)) { + static volatile gsize ifoo_type_id__once = 0; + if (g_once_init_enter (&ifoo_type_id__once)) { GType ifoo_type_id; ifoo_type_id = ifoo_get_type_once (); - g_once_init_leave (&ifoo_type_id__volatile, ifoo_type_id); + g_once_init_leave (&ifoo_type_id__once, ifoo_type_id); } - return ifoo_type_id__volatile; + return ifoo_type_id__once; } static void @@ -326,13 +326,13 @@ foo_get_type_once (void) GType foo_get_type (void) { - static volatile gsize foo_type_id__volatile = 0; - if (g_once_init_enter (&foo_type_id__volatile)) { + static volatile gsize foo_type_id__once = 0; + if (g_once_init_enter (&foo_type_id__once)) { GType foo_type_id; foo_type_id = foo_get_type_once (); - g_once_init_leave (&foo_type_id__volatile, foo_type_id); + g_once_init_leave (&foo_type_id__once, foo_type_id); } - return foo_type_id__volatile; + return foo_type_id__once; } static Block1Data* |