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 It's the kind of thing people would implement for themselves—poorly—if it wasn't there.
10:16 AM - 4 Sep 2015
0 replies
0 retweets
0 likes
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