Aim
We would like to have a mutex class on linux platform which can replace std::mutex. This mutex is not recursive but supporting in C++98.
Source
#include <iostream> #include "DefaultMutex.h" // usage: ./DefaultMutexLinux int main(int argc, char *argv[]) { { DefaultMutex defaultMutex; DefaultLock lock(defaultMutex); // Here is thread safe } return 0; }
沒有留言:
發佈留言