Tag Archives: C++11

Condition variables performance of boost, Win32, and the C++11 standard library

About four years ago, I wrote the condition variables in Win32 API was much faster than boost threading library implementation. Since then the boost threading library has been rewritten and C++11 has introduced the threading support in the standard library. … Continue reading

Posted in C++, Optimization | Tagged , , | 1 Comment

std::unique_ptr for Windows handles

To close a Windows handle with std::unique_ptr, we need to define a type with operator() and specify it as the second template parameter. This is different from std::shared_ptr where we can just specify the functor in a constructor parameter. Although … Continue reading

Posted in C++ | Tagged , | 4 Comments