reactos/base/services
Hermès Bélusca-Maïto ffc96d26ec
[UMPNPMGR][USETUP] Fix the way device-install events are queued and dequeued. Fixes CORE-16103.
Dedicated to the hard work of Joachim Henze! xD

This reverts part of commit 043a98dd (see also commit b2aeafca).

Contrary to what I assumed in commit 043a98dd (and was also assumed in
the older commit b2aeafca), we cannot use the singled-linked lists to
queue and dequeue the PnP device-install events, because:

- the events must be treated from the oldest to the newest ones, for
  consistency, otherwise this creates problems, as shown by e.g. CORE-16103;

- the system singled-linked lists only offer access to the top of the
  list (like a stack) instead of to both the top and the bottom of the
  list, as would be required for a queue. Using the SLISTs would mean
  that only the newest-received events would be treated first, while the
  oldest (which were the first received) events would be treated last,
  and this is wrong.

Therefore one must use e.g. the standard doubly-linked list. Also, using
locked operations (insertion & removal) on the list of device-install
events is necessary, because these operations are done concurrently by
two different threads: PnpEventThread() and DeviceInstallThread().
Since the interlocked linked list functions are not available in user-mode,
we need to use instead locking access through e.g. a mutex.
2020-10-01 01:52:09 +02:00
..
audiosrv [AUDIOSRV] logmsg(): Disable its file part 2020-07-11 01:22:56 +02:00
browser [BROWSER] Add the browser service 2020-05-21 22:49:33 +02:00
dcomlaunch [SERVICES][DCOMLAUNCH] Don't hardcode C: drive (#2779) 2020-05-17 17:45:56 +09:00
dhcpcsvc [CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905 2020-06-06 21:58:41 +03:00
dnsrslvr [DNSRSLVR] Define NDEBUG in cache.c 2020-06-14 20:03:33 +02:00
eventlog
netlogon
nfsd [NFSD] readdir_copy_shortname(): Add needed brackets to '*name_size_out' (#2856) 2020-06-06 18:21:05 +02:00
rpcss [REACTOS] Fix GetTokenInformation() usage (#2997) 2020-07-21 15:39:11 +03:00
schedsvc [SCHEDSVC] Implement the job start time calculation for given days of month 2020-05-31 22:33:49 +02:00
shsvcs [SHSVCS] Don't call UnregisterWait from within the wait callback. 2020-04-22 12:37:26 +02:00
srvsvc
svchost [REACTOS] Fix GetTokenInformation() usage (#2997) 2020-07-21 15:39:11 +03:00
tcpsvcs
telnetd [NFSD][TELNETD][LIBTIRPC][MAN] Don't hardcode C:\ReactOS (#2334) 2020-02-13 18:03:35 +01:00
tftpd [CMAKE] Remove obsolete 'CMAKE_CXX_COMPILER_VERSION' checks (#2981) 2020-07-18 15:37:29 +02:00
umpnpmgr [UMPNPMGR][USETUP] Fix the way device-install events are queued and dequeued. Fixes CORE-16103. 2020-10-01 01:52:09 +02:00
w32time [W32TIME][BOOTDATA] Export SvchostEntry_W32Time() as an alias to W32TmServiceMain, and use the former as the service entry point specified in the registry, for Windows compatibility. 2020-04-09 23:22:40 +02:00
wkssvc [NETAPI32][WKSSVC] Implement NetGetJoinInformation using the workstation service 2019-12-15 19:53:23 +01:00
wlansvc [CMAKE] Replace custom functions to built-in ones 2020-04-16 15:59:38 +03:00
wmisvc
wuauserv
CMakeLists.txt [BROWSER] Add the browser service 2020-05-21 22:49:33 +02:00