Skip to content

Commit a45d8b0

Browse files
committed
Improved mutex comment
1 parent 94a61fe commit a45d8b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

offload/include/Shared/APITypes.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ struct __tgt_async_info {
7777
/// should be freed after finalization.
7878
llvm::SmallVector<void *, 2> AssociatedAllocations;
7979

80-
/// Mutex to guard access to AssociatedAllocations and the Queue
80+
/// Mutex to guard access to AssociatedAllocations and the Queue.
81+
/// This is only used for liboffload and should be ignored in libomptarget
82+
/// code.
8183
std::mutex Mutex;
8284

8385
/// The kernel launch environment used to issue a kernel. Stored here to

0 commit comments

Comments
 (0)