Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

  1. /*****************************************************************/
  2. /** MPR Client/Server DLL Header File **/
  3. /** Copyright (C) Microsoft Corp., 1994 **/
  4. /*****************************************************************/
  5. /* SCHED.H -- Header file for miscellaneous common scheduling primitives.
  6. *
  7. * History:
  8. * gregj 10/17/94 created
  9. */
  10. #ifndef _INC_SCHED
  11. #define _INC_SCHED
  12. #ifndef RC_INVOKED
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /* WaitAndYield processes all input messages. WaitAndProcessSends only
  17. * processes SendMessages.
  18. *
  19. * WaitAndYield takes an optional parameter which is the ID of another
  20. * thread concerned with the waiting. If it's not NULL, WM_QUIT messages
  21. * will be posted to that thread's queue when they are seen in the message
  22. * loop.
  23. */
  24. DWORD WaitAndYield(HANDLE hObject, DWORD dwTimeout, volatile DWORD *pidOtherThread = NULL);
  25. DWORD WaitAndProcessSends(HANDLE hObject, DWORD dwTimeout);
  26. #ifdef __cplusplus
  27. }; /* extern "C" */
  28. #endif
  29. #endif /* RC_INVOKED */
  30. #endif /* _INC_SCHED */