Alex Richardson
5245bf7b92
lib/libc/net/nsdispatch.c: Fix missing unlock and add locking annotations
...
The error cases (goto fin) of _nsdispatch were missing the unlock.
This change also drops the checks for __isthreaded since the pthread stubs
are already no-ops if threads are not being used. Dropping those conditionals
allows clang's thread safety analysis to deal with the file and also makes
the code a bit more readable. While touching the file also add a few more
assertions in debug mode that the right locks are held.
Reviewed By: markj
Differential Revision: https://reviews.freebsd.org/D29372
2021-03-25 11:22:10 +00:00
..
2018-12-23 18:15:48 +00:00
2018-12-23 18:15:48 +00:00
2019-02-10 19:07:47 +00:00
2017-12-20 17:44:31 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2020-12-19 14:54:28 +00:00
2019-08-12 20:27:33 +00:00
2020-04-15 18:15:58 +00:00
2017-12-13 16:13:17 +00:00
2017-11-25 17:12:48 +00:00
2018-03-15 13:46:28 +00:00
2019-04-04 19:01:13 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2019-08-12 20:27:33 +00:00
2020-04-15 18:15:58 +00:00
2017-11-20 19:49:47 +00:00
2020-04-15 18:15:58 +00:00
2017-11-20 19:49:47 +00:00
2020-04-15 18:15:58 +00:00
2018-09-17 18:56:47 +00:00
2018-09-17 18:56:47 +00:00
2020-04-23 21:16:51 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:13:17 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2020-10-01 16:37:49 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2018-09-17 18:56:47 +00:00
2017-11-25 17:12:48 +00:00
2018-11-27 09:41:47 +00:00
2018-10-15 17:50:02 +00:00
2021-03-25 11:22:10 +00:00
2018-10-15 19:48:36 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2018-09-17 18:56:47 +00:00
2017-11-25 17:12:48 +00:00
2018-09-17 18:56:47 +00:00
2020-02-05 16:09:44 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2019-05-29 02:08:23 +00:00
2020-06-21 23:47:27 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-11-20 19:49:47 +00:00