Skip to content

Clarification around clap_plugin_entry init/deinit #365

Answered by defiantnerd
prokopyl asked this question in Q&A
Discussion options

You must be logged in to vote

IMHO it is just that these two steps:

  • load DSO and call init()

and

  • call deinit() and unload DSO

are seen as atomic steps. A host that scans all plugins will unload them all after inspection.
After unloading the DSO the process is in the same state as if the DSO wasn't loaded at all.

Regarding the thread-safe attribute: as a plugin writer you should not make assumptions about which thread calls init() or deinit() (like: "init() is called always called in the GUI thread"). It can be any thread (or probably even different ones).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prokopyl
Comment options

Answer selected by prokopyl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants