Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • kazoo kazoo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TASTETASTE
  • kazookazoo
  • Merge requests
  • !156

Remove unneeded check of initialization flag

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Angel Perez Muñoz requested to merge improve_init_functions into feature_bullseye Feb 01, 2023
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

This MR removes the unneeded check for the initialization flag (0 == @_LOWER:Sync_RIs_Parent_@_initialized) of the synchronous required interfaces. These flags are already checked inside the initialization function (init_@_LOWER:Sync_RIs_Parent_@();), thus, it is not needed to be checked by the caller.

if (0 == @_LOWER:Sync_RIs_Parent_@_initialized) { // Removed!
    init_@_LOWER:Sync_RIs_Parent_@();             // the *_initialized flag is checked inside!
}                                                 // Removed!

Note that issue #3 (closed) fixes the initialization lock problem and introduces a new test case called test-recursive-init. The changes applied in this MR passed this test.

Edited Feb 01, 2023 by Angel Perez Muñoz
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: improve_init_functions