VR-Link API Documentation for HLA 1516
vlMutex.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 #ifndef VXWORKS
00006 
00007 
00008 
00009 #pragma once
00010 
00011 #include "vlMachineTypes.h"
00012 
00013 #ifdef _WIN32
00014 #include <winsock2.h>
00015 #include <process.h>
00016 #else
00017 #include <pthread.h>
00018 #endif
00019 
00020 
00021 #ifdef DtUSE_UTILITIES_NAMESPACE
00022 namespace DtUSE_UTILITIES_NAMESPACE
00023 {
00024 #endif
00025 
00029 class DT_DLL_VLUTIL DtMutex
00030 {
00031 public:
00032 
00034    DtMutex();
00035 
00036 protected:
00038    DtMutex(const DtMutex & orig);
00040    const DtMutex & operator=(const DtMutex & orig);
00041 
00042 public:
00044    virtual ~DtMutex();
00045 
00047    virtual void lock();
00048 
00050    virtual void unlock();
00051 
00052 protected:
00053 
00054 #ifdef _WIN32
00055    CRITICAL_SECTION myCriticalSection;
00056 #else //! _WIN32
00057    pthread_mutex_t myPTMutex;
00058 #endif //! _WIN32
00059 
00060 };
00061 
00062 #ifdef DtUSE_UTILITIES_NAMESPACE
00063 } 
00064 #endif
00065 
00066 
00067 #endif

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)