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

Use selectable event to terminate logger thread #8

Closed
wants to merge 2 commits into from

Conversation

Junchao-Mellanox
Copy link
Owner

@Junchao-Mellanox Junchao-Mellanox commented Dec 29, 2023

Why I did it

settingThread of Logger select DB change with 1000ms timeout. It causes up to 1 second wait while destroy the logger instance. The 1 second wait is not necessary and can be replaced by SelectableEvent

Work item tracking
  • Microsoft ADO (number only):

How I did it

  1. Add a new member m_stopEvent with type SelectableEvent
  2. settingThread also selects m_stopEvent
  3. settingThread exits if m_stopEvent comes

How to verify it

Manual test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Yakiv-Huryk and others added 2 commits January 10, 2024 09:52
fix incorrect sizeof() value

Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
Co-authored-by: Prince Sunny <prince.sunny@microsoft.com>
@Junchao-Mellanox
Copy link
Owner Author

ci 3484

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.

3 participants