Commit b95aa4c
Fix bugs in
* Fix `timedWait` not differentiating error types
Previously it would always return `kFail`, so the caller could not differentiate timeouts from real errors.
Also it did not retry on `EINTR`.
* Fix `timedWait` accumulating errors
---------
Co-authored-by: Nicolas Fußberger <145956508+NicolasFussberger@users.noreply.github.com>Semaphore::timedWait (#292)1 parent 0a69424 commit b95aa4c
1 file changed
Lines changed: 26 additions & 18 deletions
Lines changed: 26 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
62 | 74 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | 80 | | |
72 | | - | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
0 commit comments