摘要: DWORD GetTickCount(void); 1) 定义 For Release configurations, this function returns the number of milliseconds since the device booted, excluding any ti 阅读全文
posted @ 2021-05-26 13:45 笑笑小白 阅读(965) 评论(0) 推荐(0)
摘要: volatile的作用 关键在于两个地方: 1. 编译器的优化 (请高手帮我看看下面的理解) 在本次线程内, 当读取一个变量时,为提高存取速度,编译器优化时有时会先把变量读取到一个寄存器中;以后,再取变量值时,就直接从寄存器中取值; 当变量值在本线程里改变时,会同时把变量的新值copy到该寄存器中, 阅读全文
posted @ 2021-05-26 08:52 笑笑小白 阅读(681) 评论(0) 推荐(0)