reactos/win32ss/user/ntuser
Hermès Bélusca-Maïto a8e7defb01
[WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts.
CORE-15147

- Rename CLIENTTHREADINFO::tickLastMsgChecked into timeLastRead as
  documented in https://reactos.org/wiki/Techwiki:Win32k/CLIENTTHREADINFO .
  This is the last time the message queue was read.

- This is the structure member one must compare against the current tick
  count timestamp in order to heuristically determine whether a message
  queue thread is hung!! Fix MsqIsHung() in accordance, add extra debug
  logging in order to help us determining which of our code present
  regular GUI hangs, and add as well an extra "TimeOut" parameter so as
  not to hardcode a fixed value within that function but instead
  allowing its caller to specify possible different values.

- THREADINFO::timeLast is on the contrary the last message time stamp,
  and will definitively differ from CLIENTTHREADINFO::timeLastRead .
  It should only be used for information purposes!

- Accordingly, in NtUserGetThreadState()::THREADSTATE_UPTIMELASTREAD
  and in InitThreadCallback(), only (re-)initialize the timeLastRead
  member of the CLIENTTHREADINFO structure of the THREADINFO of interest.

- In co_IntPeekMessage(), update more often the timeLastRead timestamp
  whenever the current message queue has been read (but NOT timeLast!!
  That one will be updated ONLY WHEN a message is found!).

- In co_IntSendMessageTimeoutSingle() first check whether the window to
  which we send the message is being destroyed, before checking for
  queue hangs etc. Collapse the logic checks for queue hang and increase
  the hang timeout check to 4 times MSQ_HUNG (== 4 * 5 seconds) and
  display a debug trace.
2019-12-29 16:14:15 +01:00
..
misc
accelerator.c
accelerator.h
callback.c [Win32SS] Complete Print Driver Callbacks 2019-06-22 12:02:51 -05:00
callback.h
callproc.c
caret.c [NTUSER] Fix caret display mistake (#2180) 2019-12-26 19:08:01 +09:00
caret.h
class.c [WIN32K:NTUSER] Add missing parameter probe in NtUserGetClassInfo. 2019-12-29 15:22:03 +01:00
class.h
clipboard.c [WIN32K] Fix spelling typo. 2019-06-23 02:12:23 +02:00
clipboard.h
console.c
csr.c
csr.h
cursoricon.c
cursoricon.h
dce.h
dde.c
defwnd.c [WIN32SS] Fix last user visible parts of regression CORE-10855 2019-10-25 00:42:01 +02:00
desktop.c [Win32SS] Support Module Versioning. 2019-09-24 17:40:18 -05:00
desktop.h
display.c [VIDEOPRT][WIN32K] Use a Windows-compatible way of communicating the 'BaseVideo' state from VIDEOPRT to WIN32K. 2019-12-24 13:51:20 +01:00
draw.c [WIN32SS][NTUSER][USER32] Fix menu checkmarks (#2009) 2019-11-01 09:52:18 +09:00
event.c
focus.c
focus.h
ghost.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
ghost.h
guicheck.c
guicheck.h
hook.c [WIN32K] Use KeStackAttachProcess 2019-06-15 21:26:41 +02:00
hook.h
hotkey.c
hotkey.h
ime.c
input.c
input.h
kbdlayout.c
keyboard.c
layered.c
main.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
menu.c [WIN32K:menu] Use signed types for negative values... 2019-10-12 16:19:58 +02:00
menu.h
message.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
metric.c
misc.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
mmcopy.h
monitor.c
monitor.h
mouse.c [NTUSER] Support MK_SHIFT/MK_CONTROL of mouse messages (#2038) 2019-11-16 09:49:49 +09:00
msgqueue.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
msgqueue.h [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
nonclient.c [WIN32SS] WindowSnap must not affect the taskbar 2019-08-20 12:07:56 +02:00
ntstubs.c
ntuser.c
ntuser.h
object.c
object.h
painting.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
painting.h
prop.c
prop.h
scroll.h
scrollbar.c
scrollex.c
session.c
shutdown.c
shutdown.h
simplecall.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
sysparams.c [BOOTDATA][NTUSER] Fix some system parameters (#2162) 2019-12-25 18:12:43 +09:00
sysparams.h
tags.h [NTOS][CLASS2][FFS][WIN32SS] Fix some pool tags so that they correctly appear in pool dump lists. 2019-11-01 19:12:27 +01:00
timer.c
timer.h
useratom.c
useratom.h
userfuncs.h
usrheap.c
usrheap.h
vis.c
vis.h
win32.h [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
win32kdebug.h
windc.c
window.c [WIN32SS:USER] Some minimal work and fixes concerning message queues timeouts. 2019-12-29 16:14:15 +01:00
window.h [Win32SS] Support Module Versioning. 2019-09-24 17:40:18 -05:00
winpos.c [NTUSER] Fix condition of HSHELL_WINDOWCREATED (#2046) 2019-11-19 17:54:23 +09:00
winpos.h
winsta.c
winsta.h