Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deinit functions #1859

Merged
merged 28 commits into from May 12, 2024
Merged

Deinit functions #1859

merged 28 commits into from May 12, 2024

Conversation

vlazzarini
Copy link
Member

New deinit system for opcodes

  • The third function slot in OENTRY has been redeployed to support a deinit function.
  • This function has the same signature as init() and perf() functions.
  • The old deinit callback mechanism has been removed
  • Opcodes have been converted to using the new system
  • include/plugin.h and Opcodes/OpcodeBase.hpp have been modified to operate with the new system

@vlazzarini vlazzarini changed the title Feature/deinit Deinit functions Apr 2, 2024
@gogins
Copy link
Contributor

gogins commented Apr 3, 2024 via email

@vlazzarini
Copy link
Member Author

As discussed in the developer's list, I have now removed the thread field from OENTRY.

The information it carried can be reproduced by

oentry.iopadr && oentry.kopadr  ? 3 : 
(oentry.iopadr ? 1 : 2)

@vlazzarini
Copy link
Member Author

Completed the PR with renaming: iopadr to init, opadr/kopadr to perf and dopadr to deinit.

@kunstmusik
Copy link
Member

@vlazzarini This looks to have conflicts now after merging in the oscils branch. Could you take a look at merging develop into this? I'll proceed to review after GH actions can build this branch again.

@vlazzarini
Copy link
Member Author

I will. I was anticipating this.

@vlazzarini
Copy link
Member Author

This is done now.

Opcodes/OSC.c Outdated Show resolved Hide resolved
Opcodes/OSC.c Outdated Show resolved Hide resolved
Opcodes/afilters.c Outdated Show resolved Hide resolved
Opcodes/cpumeter.c Outdated Show resolved Hide resolved
Opcodes/date.c Outdated Show resolved Hide resolved
include/csoundCore.h Outdated Show resolved Hide resolved
include/plugin.h Outdated Show resolved Hide resolved
include/plugin.h Outdated Show resolved Hide resolved
util/mkdb.c Outdated Show resolved Hide resolved
Engine/insert.c Outdated Show resolved Hide resolved
@kunstmusik
Copy link
Member

Note: a couple of regressions resulted from this PR:

We will need to address these but it's worth it to merge and move forward.

@kunstmusik kunstmusik merged commit d7bc57c into develop May 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants