| 94 | } |
| 95 | |
| 96 | port::StatusOr<Platform*> MultiPlatformManagerImpl::PlatformWithName( |
| 97 | absl::string_view target) { |
| 98 | absl::MutexLock lock(&mu_); |
| 99 | |
| 100 | SE_ASSIGN_OR_RETURN(Platform * platform, LookupByNameLocked(target)); |
| 101 | if (!platform->Initialized()) { |
| 102 | SE_RETURN_IF_ERROR(platform->Initialize({})); |
| 103 | } |
| 104 | |
| 105 | return platform; |
| 106 | } |
| 107 | |
| 108 | port::StatusOr<Platform*> MultiPlatformManagerImpl::PlatformWithId( |
| 109 | const Platform::Id& id) { |
nothing calls this directly
no test coverage detected