On Sat, Dec 07, 2013 at 14:11, Vadim Zhukov wrote: > This patch fixes problems in KDE4, that relies on sharing (process-shared) > semaphores via mmap(). This feature is used in the wild, so if we claim > that we support process-shared semaphores, we have to implement it, too.
Haven't forgotten about this. > Dirty games with "lock" member required to avoid exposing extra structure > (struct _spinlock) in public header. On the bright side, this diff removes > more stuff than it adds, so it have to be a good diff. :) This is really the troubling part for me. In particular, our spinlock implementation isn't all that great. I was poking at it earlier this year, but didn't make any progress except to convince myself more work needs to be done. Exposing spinlock internals makes experimentation in this area more difficult. I realized my previous replies had only vague promises of pain and misery resulting from changing sem_t :), but I've been thinking about it a bit more and wanted to make clear that there's a concrete reason behind my concern. Unfortunately, there's no timeframe for when I expect this to happen, other than I consider spinlock/mutex performance a serious issue. So yes, I'm stalling/slacking, but I hope you'll find the patience to wait it out. And if not, let's talk.
