forked fromtvondra/shared_ispell
- Notifications
You must be signed in to change notification settings - Fork1
Commit49da956
PGPRO-2033: a try to fix the use of dispell_reset in shared_ispell on Windows
The shared_ispell dictionary is loaded into memory if the timestamp of its lastlookup is less than the timestamp of the reset of the shared dictionary memory.These timestamps used the function gettimeofday() which is not for Win32 highprecision timing purposes. Therefore sometimes the timestamp of the lastdictinary lookup and the timestamp of the reset of the shared dictionary memoryare equal and the function ts_lexize returns NULL (from buildfarm). To avoidthis use the structure instr_time and its macros/functions with portablehigh-precision interval timing for the same purpose.1 parente6d908d commit49da956
2 files changed
+7
-6
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
| 197 | + | |
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
| |||
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
412 |
| - | |
| 412 | + | |
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
| |||
444 | 444 |
| |
445 | 445 |
| |
446 | 446 |
| |
447 |
| - | |
| 447 | + | |
448 | 448 |
| |
449 | 449 |
| |
450 | 450 |
| |
| |||
612 | 612 |
| |
613 | 613 |
| |
614 | 614 |
| |
615 |
| - | |
| 615 | + | |
| 616 | + | |
616 | 617 |
| |
617 | 618 |
| |
618 | 619 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
| 47 | + | |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
|
0 commit comments
Comments
(0)