Commit 95a105e
[nrf fromtree] net: lib: coap_client: Remove unnecessary atomic variable
In receiving thread, continuing the loops is based on
has_ongoing_exchanges() so it does not need atomic
coap_client_recv_active variable.
When idling, it wakes from semaphore. But there was potential
deadlock when coap_client_schedule_poll() would not signal the
semaphore, if atomic variable was already showing that it runs.
Removing the atomic variable removes this deadlock.
Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 1e5a537)
(cherry picked from commit 53b26fb)1 parent 45b7e33 commit 95a105e
1 file changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 84 | + | |
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
| |||
956 | 952 | | |
957 | 953 | | |
958 | 954 | | |
959 | | - | |
960 | 955 | | |
961 | 956 | | |
962 | 957 | | |
| |||
974 | 969 | | |
975 | 970 | | |
976 | 971 | | |
977 | | - | |
978 | 972 | | |
979 | 973 | | |
980 | 974 | | |
| |||
987 | 981 | | |
988 | 982 | | |
989 | 983 | | |
990 | | - | |
991 | 984 | | |
992 | 985 | | |
993 | 986 | | |
| |||
0 commit comments