Alan Coopersmith <[email protected]> writes: > On 09/20/15 11:16 PM, Keith Packard wrote: >> This provides a callback-based interface to monitor file >> descriptors beyond the usual client and device interfaces. >> >> Modules within the server using file descriptors for reading and/or >> writing can call >> >> Bool SetNotifyFd(int fd, NotifyFdProcPtr notify_fd, int mask, void >> *data); >> >> mask can be any combination of X_NOTIFY_READ and X_NOTIFY_WRITE. > > Now that you've included the mask, should we mark > http://patchwork.freedesktop.org/patch/10692/ > as superseded by this patch?
I'm offline at present, but if that's what I think it is, then yes :-) > Any memory of what you wanted to use your proposed AddWriteSocket() API for > all those years ago? Ajax mentioned Xvnc as a prime candidate, which is why I added this part of the API. I also figured out that I could do the migration away from select(2) by rewriting all of the current file descriptor stuff in terms of this new API, so write-blocked clients will end up using this during that transition. -- -keith
signature.asc
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
