Differences From Artifact [436780f050]:
- File src/OFKqueueKernelEventObserver.m — part of check-in [17d57e01ff] at 2019-06-17 02:33:47 on branch trunk — Remove underscores from class names (user: js, size: 5207) [annotate] [blame] [check-ins using]
To Artifact [9e8a185a40]:
- File
src/OFKqueueKernelEventObserver.m
— part of check-in
[e702135e17]
at
2019-09-01 16:53:45
on branch trunk
— Remove remaining uses of lrint()
It was used to convert a time interval into seconds and microseconds or
seconds and nanoseconds and introduced inaccuracies. (user: js, size: 5182) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <assert.h> #include <errno.h> | < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <assert.h> #include <errno.h> #ifdef HAVE_FCNTL_H # include <fcntl.h> #endif #include "unistd_wrapper.h" #include <sys/types.h> |
︙ | ︙ | |||
161 162 163 164 165 166 167 | [self of_processQueue]; if ([self of_processReadBuffers]) return; timeout.tv_sec = (time_t)timeInterval; | | | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | [self of_processQueue]; if ([self of_processReadBuffers]) return; timeout.tv_sec = (time_t)timeInterval; timeout.tv_nsec = (timeInterval - timeout.tv_sec) * 1000000000; events = kevent(_kernelQueue, NULL, 0, eventList, EVENTLIST_SIZE, (timeInterval != -1 ? &timeout : NULL)); if (events < 0) @throw [OFObserveFailedException exceptionWithObserver: self errNo: errno]; |
︙ | ︙ |