Commit 49da956
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 last
lookup is less than the timestamp of the reset of the shared dictionary memory.
These timestamps used the function gettimeofday() which is not for Win32 high
precision timing purposes. Therefore sometimes the timestamp of the last
dictinary lookup and the timestamp of the reset of the shared dictionary memory
are equal and the function ts_lexize returns NULL (from buildfarm). To avoid
this use the structure instr_time and its macros/functions with portable
high-precision interval timing for the same purpose.1 parent e6d908d commit 49da956
File tree
2 files changed
+7
-6
lines changed- src
2 files changed
+7
-6
lines changed| 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 | | |
| |||
| 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