Skip to content

Conversation

ItsVicky25
Copy link

Fixes #2727

Changes

  • Thread-local override system: Added OverrideModeGuard RAII
    class to manage override state
  • Plugin registration override: Modified AppendIfUnique template
    specialization to allow replacing existing plugins when in override
    mode
  • New API functions:
    • mjp_registerPluginWithOverride() - Register plugin with override
      capability
    • mj_loadPluginLibraryEx() - Load plugin library with optional
      override parameter
  • Enhanced return values: Updated mj_loadPluginLibrary() to
    return int status code
  • Memory management: Added proper FreeObject template
    specialization for cleanup

  Implements plugin override system to address issue google-deepmind#2727:
  - Add thread-local override mode with OverrideModeGuard
  - Allow replacing existing plugins without removing originals
  - Add mjp_registerPluginWithOverride() API function
  - Add mj_loadPluginLibraryEx() with override parameter
  - Update mj_loadPluginLibrary() to return int status
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.

Allow overriding already registered plugins
1 participant