-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a safe reference counter for initialization/deinitialization (#47
) This counter is necessary when the application makes use of `multiples libraries` each dependent on `libinstpatch`. Examples: - `Swami` is dependent on `libinstpatch`and `fluidsynth`. `fluidsynth` could be optionally dependent on `libinstpatch`. In this case, `libinstpatch` is owned twice (by `swami` and by `fluidsynth`). - For an application only dependent on `fluidsynth`, `libinstpatch` is only owned by `fluidsynth`. - For an application only dependent on `libinstpatch`, `libinstpatch` is only owned by this application. This counter ensures that internal `initialization` (or `deinitialization`) is done only one time. This is required because `libinstpatch` is dependent on `GObject` which doesn't accept that the same `Gtype` be registered multiple times.
- Loading branch information
Showing
1 changed file
with
38 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters