Commit 1cc58de
committed
Set the FreeBSD clock types
Dispatch passes everything through in nanoseconds, but the default time
on FreeBSD is in milliseconds, resulting in delays taking a million
times longer than expected. This stands out most with `Task.sleep`,
where a 2 second sleep would take hours.
By setting the EVFILT_TIMER filter flag to use nanoseconds, we get the
expected delay.
Also sets up the absolute time flag. The spelling on FreeBSD is
`NOTE_ABSTIME` instead of `NOTE_ABSOLUTE`.1 parent 4029973 commit 1cc58de
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
0 commit comments