Parallelize singleton execution
Bug: 281536768 Test: manual, presubmits Change-Id: I57fdc76ba6b277e88e196b506af87127a530fd37
This commit is contained in:
@@ -75,7 +75,7 @@ type hostSnapshotFakeJsonFlags struct {
|
||||
}
|
||||
|
||||
func registerHostSnapshotComponents(ctx android.RegistrationContext) {
|
||||
ctx.RegisterSingletonType("host-fake-snapshot", HostToolsFakeAndroidSingleton)
|
||||
ctx.RegisterParallelSingletonType("host-fake-snapshot", HostToolsFakeAndroidSingleton)
|
||||
}
|
||||
|
||||
type hostFakeSingleton struct {
|
||||
|
@@ -68,7 +68,7 @@ var RecoverySnapshotImageName = "recovery"
|
||||
type RecoverySnapshotImage struct{}
|
||||
|
||||
func (RecoverySnapshotImage) Init(ctx android.RegistrationContext) {
|
||||
ctx.RegisterSingletonType("recovery-snapshot", RecoverySnapshotSingleton)
|
||||
ctx.RegisterParallelSingletonType("recovery-snapshot", RecoverySnapshotSingleton)
|
||||
}
|
||||
|
||||
func (RecoverySnapshotImage) RegisterAdditionalModule(ctx android.RegistrationContext, name string, factory android.ModuleFactory) {
|
||||
|
@@ -78,8 +78,8 @@ var VendorSnapshotImageName = "vendor"
|
||||
type VendorSnapshotImage struct{}
|
||||
|
||||
func (VendorSnapshotImage) Init(ctx android.RegistrationContext) {
|
||||
ctx.RegisterSingletonType("vendor-snapshot", VendorSnapshotSingleton)
|
||||
ctx.RegisterSingletonType("vendor-fake-snapshot", VendorFakeSnapshotSingleton)
|
||||
ctx.RegisterParallelSingletonType("vendor-snapshot", VendorSnapshotSingleton)
|
||||
ctx.RegisterParallelSingletonType("vendor-fake-snapshot", VendorFakeSnapshotSingleton)
|
||||
}
|
||||
|
||||
func (VendorSnapshotImage) RegisterAdditionalModule(ctx android.RegistrationContext, name string, factory android.ModuleFactory) {
|
||||
|
Reference in New Issue
Block a user