swami / libinstpatch

Instrument file software library.
Other
20 stars 6 forks source link

Adding a safe reference counter for initialization/deinitialization #47

Closed jjceresa closed 4 years ago

jjceresa commented 4 years ago

This counter is necessary, when the application makes use of multiples libraries each dependent of libinstpatch. Examples:

This counter ensures that internal initialization(or deinitialization) is done only one time. This is required because libinstpatchis dependent of GObject which doesn't accept that the same Gtype be registered multiple times.