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.

43 lines
851 B

  1. /* xmtx.h internal header */
  2. #pragma once
  3. #ifndef _XMTX
  4. #define _XMTX
  5. #include <stdlib.h>
  6. #ifndef _YVALS
  7. #include <yvals.h>
  8. #endif
  9. _C_LIB_DECL
  10. #include <windows.h>
  11. typedef CRITICAL_SECTION _Rmtx;
  12. void _Mtxinit(_Rmtx *);
  13. void _Mtxdst(_Rmtx *);
  14. void _Mtxlock(_Rmtx *);
  15. void _Mtxunlock(_Rmtx *);
  16. #if !_MULTI_THREAD
  17. #define _Mtxinit(mtx)
  18. #define _Mtxdst(mtx)
  19. #define _Mtxlock(mtx)
  20. #define _Mtxunlock(mtx)
  21. typedef char _Once_t;
  22. #define _Once(cntrl, func) if (*(cntrl) == 0) (func)(), *(cntrl) = 2
  23. #define _ONCE_T_INIT 0
  24. #else
  25. typedef long _Once_t;
  26. void __cdecl _Once(_Once_t *, void (*)(void));
  27. #define _ONCE_T_INIT 0
  28. #endif /* _MULTI_THREAD */
  29. _END_C_LIB_DECL
  30. #endif /* _XMTX */
  31. /*
  32. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  33. * Consult your license regarding permissions and restrictions.
  34. V3.10:0009 */