[Openmp-commits] [PATCH] D111954: [OpenMP][Plugin] Introduce resouce manager
Ye Luo via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Oct 16 17:35:48 PDT 2021
ye-luo added inline comments.
================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:257
+ /// from its initial state.
+ void put(Ty R) noexcept {
+ std::lock_guard<std::mutex> LG(Mutex);
----------------
You may consider acquire/release instead of put/get. I'm open to suggestions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111954/new/
https://reviews.llvm.org/D111954
More information about the Openmp-commits
mailing list