Question Ans

2020_11_09

2020_11_09

bingliaolong 4年前 (2021-02-16) 3 0

shared_ptr shared_ptr采用引用计数的方式管理所指向的对象。当有一个新的shared_ptr指向同一个对象时(复制shared_ptr等),引用计数加1。当shared_ptr离开作用域时,引用计数...

2020_11_19_02

2020_11_19_02 5

bingliaolong 4年前 (2021-02-17) 13 0

GetMessage和PeekMessage PeekMessage在处理获得消息时候和GetMessage一样,关键不同的是PeekMessage在没有消息处理的时候还会继续保持循环激活状态,并且继续占用资源。 G...

2020_11_20

2020_11_20

bingliaolong 4年前 (2021-02-17) 5 0

Windebug WinDbg相关 生产者消费者 #include <condition_variable> #include <iostream> #include <mutex>...

2020_11_23

2020_11_23

bingliaolong 4年前 (2021-02-17) 7 0

两个栈实现队列 #include <iostream> #include <stack> using namespace std; template <class T> class...

扫一扫二维码分享