| 106 | } |
| 107 | |
| 108 | port::StatusOr<Platform*> MultiPlatformManagerImpl::PlatformWithId( |
| 109 | const Platform::Id& id) { |
| 110 | absl::MutexLock lock(&mu_); |
| 111 | |
| 112 | SE_ASSIGN_OR_RETURN(Platform * platform, LookupByIdLocked(id)); |
| 113 | if (!platform->Initialized()) { |
| 114 | SE_RETURN_IF_ERROR(platform->Initialize({})); |
| 115 | } |
| 116 | |
| 117 | return platform; |
| 118 | } |
| 119 | |
| 120 | port::StatusOr<Platform*> MultiPlatformManagerImpl::InitializePlatformWithName( |
| 121 | absl::string_view target, const std::map<string, string>& options) { |
nothing calls this directly
no test coverage detected