Differences From Artifact [2c8d4ea4a1]:
- File
src/OFKernelEventObserver+Private.h
— part of check-in
[2aca549d60]
at
2015-11-29 14:23:09
on branch trunk
— Clean up class extensions
Now that we can require GCC >= 4.6, we no longer need to fall back to
using a category on old compilers. (user: js, size: 985) [annotate] [blame] [check-ins using]
To Artifact [ef9792ab10]:
- File
src/OFKernelEventObserver+Private.h
— part of check-in
[e9b4700cb6]
at
2015-12-29 21:33:07
on branch trunk
— Refactor OFKernelEventObserver
This moves the locked queue for actions to
OFKernelEventObserver_LockedQueue, which is now used for select and
poll, but skipped for kqueue and epoll, as they natively support changes
from another thread.This fixes the problem that removing an object is delayed until the next
observe call - at which point it might have already been closed, meaning
the fd is no longer available. This was mainly a problem with kqueue, as
closing the fd already removed it from the kqueue, which then resulted
in an error being returned when trying to manually remove the fd from
the kqueue. (user: js, size: 726) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
15 16 17 18 19 20 21 | */ #import "OFKernelEventObserver.h" OF_ASSUME_NONNULL_BEGIN @interface OFKernelEventObserver () | < < < < < | 15 16 17 18 19 20 21 22 23 24 25 | */ #import "OFKernelEventObserver.h" OF_ASSUME_NONNULL_BEGIN @interface OFKernelEventObserver () - (void)OF_processReadBuffers; @end OF_ASSUME_NONNULL_END |