[Threading][TSan] Update after review comments.

* Use the longer name ThreadSanitizer rather than TSan for the new files.
* Don't implement `tsan::consume` at all for now.
* Do the `tsan::release` for `ulock_unlock()` at the head of the function,
  not at the tail.
* Add a comment to test/Sanitizers/tsan/once.swift to explain the test a
  little more clearly.

rdar://110665213
This commit is contained in:
Alastair Houghton
2023-06-19 11:14:34 +01:00
parent 41f46ec085
commit ee5efff5b1
8 changed files with 27 additions and 31 deletions

View File

@@ -18,7 +18,7 @@
#include "swift/Threading/Impl.h"
#include "swift/Threading/Errors.h"
#include "swift/Threading/TSan.h"
#include "swift/Threading/ThreadSanitizer.h"
namespace {