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

Warning Failling to release lock #1

Open
AnDumu opened this issue May 8, 2022 · 1 comment
Open

Warning Failling to release lock #1

AnDumu opened this issue May 8, 2022 · 1 comment

Comments

@AnDumu
Copy link

AnDumu commented May 8, 2022

Greetings, I know it's an old code, but using it I get this warning:

*Severity Code Description Project File Line Suppression State
Warning C26115 Failing to release lock 'allotemp.1' in function 'ThreadPoolExecutor::on_worker_exit'. C:\Users\XXX\Documents\Visual Studio 2019\Projects\Test\thread_pool_executor.hpp 147

std::notify_all_at_thread_exit(workers_map_cv, std::move(lock));

I found there was a bug in VS 2019 but a fix was release with 16.10, right now I'm using 16.11.13, it should be fixed, do you get the same warning?

Thank you in advance (Y)

@dapper91
Copy link
Owner

@AnDumu Hi. Sorry, I don't have VS compiler on my laptop so I can't check if this warning is reproducible on my side.
I have clang++ 13.1.6 only. It doesn't emit any warnings.

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

No branches or pull requests

2 participants