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

Allow extensions for VSTHRD001 (Avoid legacy thread switching APIs) #332

Closed
sharwell opened this issue Aug 5, 2018 · 0 comments
Closed

Comments

@sharwell
Copy link
Member

sharwell commented Aug 5, 2018

Is your feature request related to a problem? Please describe.

VSTHRD001 reports violations for use of specific thread switching APIs. For applications that abstracted this and are working to incrementally switch to newer APIs, it would be nice to add the custom abstraction to the set of APIs recognized by VSTHRD001.

Describe the solution you'd like

A similar approach to that taken by other extensible diagnostics.

Describe alternatives you've considered

Marking the methods [Obsolete], which works to a degree but suffers from inability to distinguish #pragma warning suppress at the call sites according to the specific type of violation involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants