Use RwMutex for DeclInfo `deps

This commit is contained in:
gingerBill
2023-01-03 15:34:52 +00:00
parent c7a704d345
commit 3dee3205b2
4 changed files with 27 additions and 18 deletions
+2 -2
View File
@@ -179,10 +179,10 @@ struct DeclInfo {
CommentGroup *comment;
CommentGroup *docs;
BlockingMutex deps_mutex;
RwMutex deps_mutex;
PtrSet<Entity *> deps;
BlockingMutex type_info_deps_mutex;
RwMutex type_info_deps_mutex;
PtrSet<Type *> type_info_deps;
Array<BlockLabel> labels;