aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2015-11-09 16:31:51 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2015-11-09 16:31:51 +0000
commit3f5dfc256204b4f4825fbfbfc7c9f985f4e78422 (patch)
tree8c13565dbd9a8fde21497ec15dfc6341b2a25073 /clang/lib/Basic/VirtualFileSystem.cpp
parentb0b83c8b0cb020425fe5cfbc892d170cec696caa (diff)
downloadllvm-3f5dfc256204b4f4825fbfbfc7c9f985f4e78422.zip
llvm-3f5dfc256204b4f4825fbfbfc7c9f985f4e78422.tar.gz
llvm-3f5dfc256204b4f4825fbfbfc7c9f985f4e78422.tar.bz2
Fixes to wait-loop code
1) Add get_ptr_type() method to all wait flag types. 2) Flag in sleep_loc may change type by the time the resume is called from __kmp_null_resume_wrapper. We use get_ptr_type to obtain the real type and compare it to the casted object received. If they don't match, we know the flag has changed (already resumed and replaced by another flag). If they match, it doesn't hurt to go ahead and resume it. Differential Revision: http://reviews.llvm.org/D14458 llvm-svn: 252487
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions