| 227 | } |
| 228 | |
| 229 | bool PlatformFileSystem::close(std::istream &strm) { |
| 230 | std::scoped_lock<std::mutex> lock(m_inputStreamsMutex); |
| 231 | |
| 232 | InputStreams::const_iterator it = m_inputStreams.find(&strm); |
| 233 | if (it != m_inputStreams.end()) { |
| 234 | m_inputStreams.erase(it); |
| 235 | return true; |
| 236 | } |
| 237 | return false; |
| 238 | } |
| 239 | |
| 240 | std::ostream &PlatformFileSystem::openOutput(PathId fileId, |
| 241 | std::ios_base::openmode mode) { |
no outgoing calls