Use of `Mutex` within the stdlib's `Concurrency` module

Yeah, as a quick solution I think adopting StdlibDeploymentTarget is fine, but ideally in the near future I would like to bump the minimum deployment target of the stdlib so that the use of this macro won't be needed for types like Atomic and Mutex.

As to why you're seeing this particular error, it's because the concurrency module does not currently depend on the Synchronization module in the build system. We will need to do this eventually. cc @etcwilde we will need to make the Synchronization module a core module and not a supplementary one very soon to adopt things like Atomic and Mutex in the concurrency sources.

3 Likes