We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
request_stop() method in stop_source should return
request_stop()
stop_source
true if the stop_source object has a stop-state and this invocation made a stop request, otherwise false.
But your method returns false in case of successful request for the invocation.
The same logic I see in the NVIDIA project
P.S. Also why did you skip unlock()? Is it really safe for 2 threads that make the stop_request ?
unlock()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
request_stop()
method instop_source
should returnBut your method returns false in case of successful request for the invocation.
The same logic I see in the NVIDIA project
P.S. Also why did you skip
unlock()
? Is it really safe for 2 threads that make the stop_request ?The text was updated successfully, but these errors were encountered: