This is an archive of the discontinued LLVM Phabricator instance.

Make llvm::call_once more convenient to reuse out of LLVM
AbandonedPublic

Authored by krytarowski on Feb 4 2017, 3:39 PM.

Details

Summary

Currently users need to set call using namespace llvm;, with this change it's no longer needed.

This patch is required for systems defining LLVM_THREADING_USE_STD_CALL_ONCE.

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Feb 4 2017, 3:39 PM
krytarowski abandoned this revision.Feb 5 2017, 7:45 AM

I'm going to propose a reworked interface. Closer in interaction to std::call_once.