Removing Windows library dependencies
问题 I have a couple of classes here that I would like to remove window library dependencies for portability reasons. One for blocking processes and the other for blocking threads. Both of these classes compile & runs fine as is... As for the BlockProcess class it is currently using a HANDLE for a mutex and using function calls such as: { CreateMutex() , CloseHandle() & GetLastError() }. As for the BlockThread class it uses a pointer to a CRITICAL_SECTION calling functions such as: {