RAII mechanism in C ++ 11 smart pointer and the type of lock, and behind them

C ++ 11 in the smart pointer:

Four kinds of smart pointers explain (auto_ptr, second_ptr, shared_ptr, weak_ptr ), the source comprising: https://blog.csdn.net/sinat_36118270/article/details/69061348

shared_ptr, unique_ptr, weak_ptr use to explain: https://blog.csdn.net/vict_wang/article/details/88781941#shared_ptr_105

The exemplary blog second parent and child understanding, the first example of a doubly linked list of the blog (circular references)

 

C ++ 11 types of locks

Type of lock, a first classification: https://www.cnblogs.com/diegodu/p/7099300.html

The type of lock, the second classification: https://blog.csdn.net/xy_cpp/article/details/81910513

Mutex lock condition, spin locks, read locks

As theory is the first or second, focus on mastering the C ++ standard library to lock Administrative Templates, lock_guard, shared_lock, unique_lock.

 

RAII mechanisms:

https://blog.csdn.net/wozhengtao/article/details/52187484

Guess you like

Origin www.cnblogs.com/lipanDL/p/11274938.html