summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-06-27 21:19:30 +0000
committerTim Northover <tnorthover@apple.com>2013-06-27 21:19:30 +0000
commit0614fcd0e39d9ec424b32de2039b8e2fc6937d4b (patch)
tree01ee46bef9fa9bef7b86bec2b503e994e393e68f /clang/lib/Sema/SemaTemplate.cpp
parent28e84fc53eb8e0c746ee9235781b4652d3a3ea6d (diff)
downloadbcm5719-llvm-0614fcd0e39d9ec424b32de2039b8e2fc6937d4b.tar.gz
bcm5719-llvm-0614fcd0e39d9ec424b32de2039b8e2fc6937d4b.zip
Prevent race in when stopping a "read thread"
Both StopReadThread and the thread being stopped set the thread id to 0 after m_read_thread_enabled was set to false. If the thread being stopped got there first then StopReadThread called pthread_join on an invalid thread number. This is not a Good Thing, Should fix a fairly regular segfault when quitting on Linux. llvm-svn: 185107
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud