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/ordering/constant-class.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/ordering/constant-class.c-expected')
-rw-r--r-- | tests/ordering/constant-class.c-expected | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ordering/constant-class.c-expected b/tests/ordering/constant-class.c-expected index 312b74812..c6ce5c234 100644 --- a/tests/ordering/constant-class.c-expected +++ b/tests/ordering/constant-class.c-expected @@ -275,13 +275,13 @@ fooclass_get_type_once (void) GType fooclass_get_type (void) { - static volatile gsize fooclass_type_id__volatile = 0; - if (g_once_init_enter (&fooclass_type_id__volatile)) { + static volatile gsize fooclass_type_id__once = 0; + if (g_once_init_enter (&fooclass_type_id__once)) { GType fooclass_type_id; fooclass_type_id = fooclass_get_type_once (); - g_once_init_leave (&fooclass_type_id__volatile, fooclass_type_id); + g_once_init_leave (&fooclass_type_id__once, fooclass_type_id); } - return fooclass_type_id__volatile; + return fooclass_type_id__once; } gpointer |