From 235ceebe374d781375ebb66b50dfc2a496245a1d Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Wed, 25 Mar 2020 15:56:43 +0000 Subject: [PATCH] Add type manager synchronization comment. This Cl adds a comment about the type manager being a singleton and synchronization requirements. Change-Id: I91618516b26c18aa6b47e7e564b4b3a8eecc1009 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/17740 Reviewed-by: David Neto --- src/type_manager.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/type_manager.h b/src/type_manager.h index 573542a205..a518b22f64 100644 --- a/src/type_manager.h +++ b/src/type_manager.h @@ -24,6 +24,9 @@ namespace tint { /// The type manager holds all the pointers to the known types. +/// +/// Note, the type manager is a singleton. Any synchronization for the manager +/// must be done by the caller. class TypeManager { public: /// @returns a pointer to the type manager