From 2d6bed512fb89332e0a10c3fca898619dc124761 Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Thu, 20 Mar 2025 22:21:05 +0000 Subject: Move SyncMap to blueprint. Bug: 358427516 Test: Manually verified genereated ninja and mk files, unit tests. Change-Id: If2d347c39e4f2e4cae51fb5e6dcd407d79bd42df --- android/raw_files.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'android/raw_files.go') diff --git a/android/raw_files.go b/android/raw_files.go index fd371965c..ebba4d145 100644 --- a/android/raw_files.go +++ b/android/raw_files.go @@ -26,6 +26,7 @@ import ( "testing" "github.com/google/blueprint" + "github.com/google/blueprint/syncmap" "github.com/google/blueprint/proptools" ) @@ -213,10 +214,10 @@ type rawFileInfo struct { var rawFileSetKey OnceKey = NewOnceKey("raw file set") -func getRawFileSet(config Config) *SyncMap[string, rawFileInfo] { +func getRawFileSet(config Config) *syncmap.SyncMap[string, rawFileInfo] { return config.Once(rawFileSetKey, func() any { - return &SyncMap[string, rawFileInfo]{} - }).(*SyncMap[string, rawFileInfo]) + return &syncmap.SyncMap[string, rawFileInfo]{} + }).(*syncmap.SyncMap[string, rawFileInfo]) } // ContentFromFileRuleForTests returns the content that was passed to a WriteFileRule for use -- cgit v1.2.3-59-g8ed1b