I want to run some part of my command line programm in parallel with multiple threads and I am afraid that there might be some static variable left that I must fix (e.g. by making it [ThreadStatic]). Is there any tool or easy way to find these in my project?
Of course simply searching for "static" does not help much: I have lots of static methods that work great and finde with any number of threads
Searching your files for
static:b+:i:b+:i:b*[=;]with regexp option in Visual Studio should turn up static variables for you. It will also bring operators==, but they should be relatively easy to filter out visually.