bind9/lib/isc/win32
Ondřej Surý 32a3970b13 Replace netievent lock-free queue with simple locked queue
The current implementation of isc_queue uses Michael-Scott lock-free
queue that in turn uses hazard pointers.  It was discovered that the way
we use the isc_queue, such complicated mechanism isn't really needed,
because most of the time, we either execute the work directly when on
nmthread (in case of UDP) or schedule the work from the matching
nmthreads.

Replace the current implementation of the isc_queue with a simple locked
ISC_LIST.  There's a slight improvement - since copying the whole list
is very lightweight - we move the queue into a new list before we start
the processing and locking just for moving the queue and not for every
single item on the list.

NOTE: There's a room for future improvements - since we don't guarantee
the order in which the netievents are processed, we could have two lists
- one unlocked that would be used when scheduling the work from the
matching thread and one locked that would be used from non-matching
thread.

(cherry picked from commit 6bd025942c)
2022-05-25 16:01:58 +02:00
..
include Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE() 2022-03-28 23:28:05 +02:00
.dir-locals.el Add emacs .dir-locals.el settings for flycheck mode 2018-12-19 17:03:37 +01:00
condition.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dir.c Add couple missing braces around single-line statements 2022-03-17 18:31:36 +01:00
DLLMain.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
errno.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
errno2result.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
errno2result.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
file.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
fsaccess.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
interfaceiter.c Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE() 2022-03-28 23:28:05 +02:00
ipv6.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
libgen.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
libisc.def.exclude Remove unused obsolete isc_hash_* function, and just keep the FNV-1a version 2018-04-04 23:12:14 +02:00
libisc.def.in Replace netievent lock-free queue with simple locked queue 2022-05-25 16:01:58 +02:00
libisc.vcxproj.filters.in Replace netievent lock-free queue with simple locked queue 2022-05-25 16:01:58 +02:00
libisc.vcxproj.in Replace netievent lock-free queue with simple locked queue 2022-05-25 16:01:58 +02:00
libisc.vcxproj.user Convert *.vcxproj.user to CRLF line endings 2019-03-08 18:01:48 +01:00
Makefile.in Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
meminfo.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
net.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
netdb.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ntgroups.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ntpaths.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
once.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
os.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pk11_api.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
resource.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
socket.c Add FALLTHROUGH macro for __attribute__((fallthrough)) 2022-03-25 09:30:16 +01:00
stdio.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
stdtime.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
syslog.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
syslog.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
thread.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
time.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
unistd.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
version.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
win32os.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00