Tool for viewing multi-threaded (C ++ / C) code?

We use multithreading in our rather large product, but when viewing it, we hardly know that a function or method will work under that stream. I know this looks silly, but in a big product without good modulation we can get lost. And there are many potential problems with synchronization.

So I'm wondering if there are tools for viewing the code that could help you easily determine what function / method will execute under that thread (s).

+3
source share
3 answers

Understand for C ++ is able to generate call schedules through source code analysis. A graph starting at each stream entry point will give you what functions work in each stream.

It can be written in Perl , so you can probably create a list of threads that can run the function. Perhaps this already exists in the scripts that they provide.

+1
source

All Articles