[PATCH] D42214: libcxx: Move Windows threading support into a .cpp file.

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 17:52:10 PST 2018


smeenai accepted this revision.
smeenai added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: libcxx/src/support/win32/thread_win32.cpp:18-39
+static_assert(sizeof(__libcpp_mutex_t) == sizeof(SRWLOCK), "");
+static_assert(alignof(__libcpp_mutex_t) == alignof(SRWLOCK), "");
+
+static_assert(sizeof(__libcpp_recursive_mutex_t) == sizeof(CRITICAL_SECTION),
+              "");
+static_assert(alignof(__libcpp_recursive_mutex_t) == alignof(CRITICAL_SECTION),
+              "");
----------------
Awesome.


https://reviews.llvm.org/D42214





More information about the llvm-commits mailing list