[libc-commits] [PATCH] D74653: [libc] Add simple implementations of mtx_lock and mtx_unlock.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Feb 14 14:57:33 PST 2020


sivachandra marked an inline comment as done.
sivachandra added inline comments.


================
Comment at: libc/src/threads/linux/mtx_lock.cpp:16
+#include <linux/futex.h> // For futex operations.
+#include <stdatomic.h>   // For atomic_compare_exchange_strong.
+
----------------
Though `stdatomic.h` is not a free standing header, we will use the one provided by the compilers. LLVM-libc will not provide it. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74653/new/

https://reviews.llvm.org/D74653





More information about the libc-commits mailing list