I'm reading "Threadtime" by Norton and Dipasquale. Their exercises use pthreads. I'm able to build and run them using Visual Studio, Cmake, and Winlibs (MinGW-64).
However, my breakpoints aren't hit when I debug, as the Winlibs binaries are built in release mode. It seems like libwinpthread-1.dll is my specific problem.
So now I'm trying to rebuild libwinpthread-1.dll in debug mode, and I'm totally lost. Do I need to rebuild all of Mingw-64? The entire toolchain? Or just libwinpthread-1.dll somehow?
Or could anyone recommend a good book to learn multithreading with the Win32 API?
I just want to learn multithreading with something I can use on windows, and step through the program to see when threads are created, destroyed, etc.