[PATCH] D37677: [libc++] implement future synchronization using atomic_flag

Dennis Luxen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 02:01:22 PDT 2017


dennis.luxen created this revision.

This task is listed in TODO.txt. The implementation swaps mutex against a spinlock based on atomic_flag. The spin lock itself is implemented as a nested class in a protected context of the associated state.


https://reviews.llvm.org/D37677

Files:
  include/future
  src/future.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37677.114545.patch
Type: text/x-patch
Size: 5855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170911/ece1fbbe/attachment.bin>


More information about the cfe-commits mailing list