VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlutil
vlMutex.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*******************************************************************************/
5
#ifndef VXWORKS
6
7
8
9
#pragma once
10
11
#include "
vlMachineTypes.h
"
12
13
#ifdef _WIN32
14
#include <winsock2.h>
15
#include <process.h>
16
#else
17
#include <pthread.h>
18
#endif
19
20
21
#ifdef DtUSE_UTILITIES_NAMESPACE
22
namespace
DtUSE_UTILITIES_NAMESPACE
23
{
24
#endif
25
29
class
DT_DLL_VLUTIL
DtMutex
30
{
31
public
:
32
34
DtMutex
();
35
36
protected
:
38
DtMutex
(
const
DtMutex
& orig);
40
const
DtMutex
& operator=(
const
DtMutex
& orig);
41
42
public
:
44
virtual
~
DtMutex
();
45
47
virtual
void
lock();
48
50
virtual
void
unlock();
51
52
protected
:
53
54
#ifdef _WIN32
55
CRITICAL_SECTION myCriticalSection;
56
#else
57
pthread_mutex_t myPTMutex;
58
#endif
59
60
};
61
62
#ifdef DtUSE_UTILITIES_NAMESPACE
63
}
64
#endif
65
66
67
#endif
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)