home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / monitor_md.h < prev    next >
C/C++ Source or Header  |  1998-09-15  |  1KB  |  38 lines

  1. /*
  2.  * @(#)monitor_md.h    1.17 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. /*
  16.  * Win32 implementation of Java monitors
  17.  */
  18.  
  19. #ifndef    _WIN32_MONITOR_MD_H_
  20. #define    _WIN32_MONITOR_MD_H_
  21.  
  22. #include <windows.h>
  23.  
  24. #include "threads_md.h"
  25. #include "mutex_md.h"
  26. #include "condvar_md.h"
  27.  
  28. #define SYS_MID_NULL ((sys_mon_t *) 0)
  29.  
  30. typedef struct sys_mon {
  31.     mutex_t         mutex;            /* Mutex for monitor */
  32.     condvar_t         condvar;          /* Condition variable for monitor */
  33.     sys_thread_t     *monitor_owner; /* Current owner of this monitor */
  34.     long         entry_count;    /* Recursion depth */
  35. } sys_mon_t;
  36.  
  37. #endif    /* !_WIN32_MONITOR_MD_H_ */
  38.