MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vlCondVar__rti__.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vlCondVar__rti__.h,v $ $Revision: 1.3 $ $State: Exp $
7 *******************************************************************************/
10 
11 #ifndef VXWORKS
12 
13 #ifndef vlCondVar__rti___H_
14 #define vlCondVar__rti___H_
15 
16 #include "rtiMsConfig.h"
17 #include <vlutil/vlMachineTypes.h>
18 #include "vlMutex__rti__.h"
19 #include <vlutil/vlTime.h>
20 
21 #if WIN32
22 #include <winsock2.h>
23 #include <process.h>
24 #else
25 #include <pthread.h>
26 #endif
27 
28 #ifdef DtUSE_UTILITIES_NAMESPACE
29 namespace DtUSE_UTILITIES_NAMESPACE
30 {
31 #endif
32 
39 {
40 public:
41 
43  DtCondVar__rti__(MAKRti::DtMutex__rti__ * condMutex);
44 
45 protected:
46 
48  DtCondVar__rti__(const DtCondVar__rti__ & orig);
49 
51  const DtCondVar__rti__ & operator=(const DtCondVar__rti__ & orig);
52 
53 public:
55  virtual ~DtCondVar__rti__();
56 
58  virtual void init();
59 
62  virtual void destroy();
63 
65  virtual void signal();
66 
68  virtual void broadcast();
69 
72  virtual int wait(DtTime waitTime = 0.0);
73 
74 protected:
75 
76  DtClock myClock;
77 #ifdef WIN32
78  HANDLE myCond;
79  MAKRti::DtMutex__rti__ * myCondMutex;
80 #else
81  pthread_cond_t myPtCond;
82  pthread_cond_t * myCond;
83  MAKRti::DtMutex__rti__ * myCondMutex;
84 #endif
85 
86 };
87 
88 #ifdef DtUSE_UTILITIES_NAMESPACE
89 }
90 #endif
91 
92 #endif
93 
94 #endif
MAKRti::DtMutex__rti__ * myCondMutex
Definition: vlCondVar__rti__.h:83
pthread_cond_t * myCond
Definition: vlCondVar__rti__.h:82
Platform independent condition variable.
Definition: vlCondVar__rti__.h:38
DtClock myClock
Definition: vlCondVar__rti__.h:76
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:160

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)