]> git.ipfire.org Git - thirdparty/vala.git/commit
Use default_init instead of base_init when registering interfaces
authorStef Walter <stefw@redhat.com>
Fri, 3 May 2013 06:07:19 +0000 (08:07 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 17 May 2018 07:13:35 +0000 (09:13 +0200)
commit71f779e9309282be6effdc79220815fddecbce86
treeb8bd8099b94a0fbda35737ee86ea61b59b593ea9
parentdfdafa42e39c885490158b71f8f2838dd882e127
Use default_init instead of base_init when registering interfaces

Using base_init() is overly complex, requires multi-initialization
guards, and in the case of vala generated code these are currently
not thread safe.

The recommended approach is to use default_init() to initialize
interfaces. It is called only once, solves thread safety issues.

https://bugzilla.gnome.org/show_bug.cgi?id=699550
codegen/valagtypemodule.vala
codegen/valainterfaceregisterfunction.vala