the.bay.news

Adopting NonCopyable `Mutex`

Swift Forums
Adopting NonCopyable `Mutex`
Hey all, I have a small question about adopting Mutex. In my codebase, we're basically using a wrapper around OSAllocatedUnfairLock today. Finding and replacing it with Mutex fails because our version is Copyable, and Mutex is not. Initially, I thought that we should make changes to the feature code to accomodate this, which was pretty easy to do until I arrived at our copy-paste of Observations, and realized that as a copyable struct I couldn't use Mutex inside it. So I went looking at the sta...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.