Unexpectedly not getting dispatch_source events

2016-05-24 Thread Rich Siegel
Good morning, There are a lot of moving parts here, but I'll try to sketch this out clearly. :-) My application has code which creates a DISPATCH_SOURCE_TYPE_VNODE to watch for changes in the backing file of an open document. When the source fires, I look at the flags and proceed based on w

Re: Unexpectedly not getting dispatch_source events

2016-05-24 Thread Mark Day
Rich, A first step at debugging something like this is to try to determine whether it is the posting of the event, or the delivery of the event, that is getting delayed. Looking at the xnu sources, it looks like these events all bottleneck through lock_vnode_and_post(vnode, events). You could