I’m assuming nobody following me uses NSDistributedLock; if there is, cut it out. I think it’s not deprecated ‘cause we forgot it existed.
-
-
@Catfish_Man What else would you suggest when there are multiple processes accessing the same file?0 replies 0 retweets 0 likes -
.
@mjtsai in ascending order of squickiness: • a database • have one process use XPC to talk to a single writer • defaults • flock()0 replies 0 retweets 4 likes -
@Catfish_Man Those aren't near as convenient as distributed locks with a network filesystem, but I guess that's not common these days.0 replies 0 retweets 2 likes -
@mjtsai NSDistributedLock is a mkdir() spinlock. It’s prone to orphaned locks, doesn’t support donation, and is slow :/0 replies 0 retweets 1 like
@Catfish_Man I'm not using it, and it's pretty clear it would have limitations like that. But seems like a reasonable LCD option to have…
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
David Smith
Michael Tsai