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

Flushblock #2505

Closed
wants to merge 3 commits into from
Closed

Flushblock #2505

wants to merge 3 commits into from

Conversation

shifu-dev
Copy link

@shifu-dev shifu-dev commented Oct 11, 2022

This pull request fixes #1696

I have resolved the issue, async_logger now supports wait(), wait_for() and wait_until() to wait until all async dispatched logs are processed.
It also works with async_overflow_policy::overrun_oldest.
I used a counter to keep track of number of async logs remaining.
I also updated async example to show the use case.

I could not update the tests as I was not build them on my system.

@shifu-dev shifu-dev closed this Oct 11, 2022
@shifu-dev shifu-dev reopened this Oct 11, 2022
@gabime
Copy link
Owner

gabime commented Oct 13, 2022

Thanks @shifu-dev . I will have to think about it. Seems non trivial and I am not sure if it worth it the complexity. Closing for now.

@gabime gabime closed this Oct 13, 2022
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.

Blocking flush on async_logger
2 participants