MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vlIpcMutex__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: vlIpcMutex__rti__.h,v $ $Revision: 1.3 $ $State: Exp $
7 *******************************************************************************/
10 
11 #ifndef VXWORKS
12 
13 #ifndef vlIpcMutex__rti___H_
14 #define vlIpcMutex__rti___H_
15 
16 #include "rtiMsConfig.h"
17 #include <vlutil/vlMachineTypes.h>
18 #include "vlMutex__rti__.h"
19 #include <vlutil/vlString.h>
20 
21 #if WIN32
22 #include <winsock2.h>
23 #include <process.h>
24 #else
25 #include <pthread.h>
26 #endif
27 
32 
33 #ifdef DtUSE_UTILITIES_NAMESPACE
34 namespace DtUSE_UTILITIES_NAMESPACE
35 {
36 #endif
37 
43 class DT_DLL_RTIUTIL DtIpcMutex__rti__ : public MAKRti::DtMutex__rti__
44 {
45 public:
46 
48 #ifdef WIN32
49  DtIpcMutex__rti__(const MAKRti::DtString& name);
50 #else
51  DtIpcMutex__rti__(pthread_mutex_t * mutex);
52 #endif
53 
54  virtual ~DtIpcMutex__rti__();
55 
56 protected:
57 
58 public:
60  virtual void init();
61 
63  virtual void lock();
64 
66  virtual void unlock();
67 
69 #ifdef WIN32
70  virtual HANDLE mutex();
71 #else
72  virtual pthread_mutex_t * mutex();
73 #endif
74 
75 protected:
76 
77 #ifdef WIN32
78  HANDLE myMutex;
79 #else
80  pthread_mutex_t * myMutex;
81 #endif
82 
83 };
84 
85 #ifdef DtUSE_UTILITIES_NAMESPACE
86 }
87 #endif
88 
89 #endif
90 
91 #endif
DO NOT - REPEAT - DO NOT use critical sections in lieu of named mutexes in Win32 implementations.
Definition: vlIpcMutex__rti__.h:43
#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)