Commit db67cf7
Fix: TS_GetNewestFromThreadQueue working only for finite values
For TS_GetNewestFromThreadQueue the thread could only return finite values
for the requested variable.
Instead of using the finite/non-finite state of the read value itself for
the decision of returning the value a flag variable was introduced that
is set when any value was read.
This allows also to send a NaN value from a thread.
(Note: It is best to use a custom timeout_default of e.g. -1 then)
TS_GetNewestFromThreadQueueMult already uses the logic with a flag variable
and does not need a fix.1 parent c98690a commit db67cf7
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | | - | |
| 67 | + | |
| 68 | + | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| |||
0 commit comments