mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:46:17 +00:00
[COMMENT] Added comment explaining how this code, which at first glance simply couldn't work, indeed can work. Much code (55 lines to be precise) is hidden inside a macro.
svn path=/trunk/; revision=29700
This commit is contained in:
parent
dedc151662
commit
c94bf60692
1 changed files with 6 additions and 0 deletions
|
@ -544,6 +544,12 @@ KeWaitForMultipleObjects(IN ULONG Count,
|
|||
|
||||
/* Otherwise, we already have the lock, so initialize the wait */
|
||||
Thread->WaitNext = FALSE;
|
||||
/* Note that KxMultiThreadWait is a macro, defined in ke_x.h, that */
|
||||
/* uses (and modifies some of) the following local */
|
||||
/* variables: */
|
||||
/* Thread, Index, WaitBlock, Timer, Timeout, Hand and Swappable. */
|
||||
/* If it looks like this code doesn't actually wait for any objects */
|
||||
/* at all, it's because the setup is done by that macro. */
|
||||
KxMultiThreadWait();
|
||||
|
||||
/* Start wait loop */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue