博客地址:http://home.cnblogs.com/u/zengjianrong/

数据竞争检查工具(TSan)

https://github.com/google/sanitizers/wiki

https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual

Introduction

ThreadSanitizer (aka TSan) is a data race detector for C/C++. Data races are one of the most common and hardest to debug types of bugs in concurrent systems. A data race occurs when two threads access the same variable concurrently and at least one of the accesses is write. C++11standard officially bans data races as undefined behavior.

posted @ 2019-11-01 15:51  black_man  阅读(898)  评论(0编辑  收藏  举报