DWFCore::DWFThreadMutex Class Reference
[Platform-specific Class and Function Declarations]

#include "dwfcore/win32/Mutex.h"

Inheritance diagram for DWFCore::DWFThreadMutex:

Inheritance graph
[legend]
Collaboration diagram for DWFCore::DWFThreadMutex:

Collaboration graph
[legend]
List of all members.

Detailed Description

A light weight inter-process synchronization object for Microsoft Windows platforms.

Since:
1.0.1
This mutex is required only to provide synchronicity across threads within a single process. This particular implementation uses the Win32 CRITICAL_SECTION which is far more efficient than the kernel mutex.

Note:
This class contains platform-specific data structures but yet still may be used in portable applications via the DWFSynchronization interface.
Examples:

Threads/Threads.cpp.

Definition at line 71 of file win32/Mutex.h.

Public Member Functions

_DWFCORE_API DWFThreadMutex () throw ()
virtual _DWFCORE_API ~DWFThreadMutex () throw ()
_DWFCORE_API void init () throw ( DWFException )
_DWFCORE_API void destroy () throw ( DWFException )
_DWFCORE_API void lock () throw ( DWFException )
_DWFCORE_API bool trylock () throw ( DWFException )
_DWFCORE_API void unlock () throw ( DWFException )


Constructor & Destructor Documentation

_DWFCORE_API DWFCore::DWFThreadMutex::DWFThreadMutex  )  throw ()
 

Constructor

Exceptions:
None 

virtual _DWFCORE_API DWFCore::DWFThreadMutex::~DWFThreadMutex  )  throw () [virtual]
 

Destructor

Exceptions:
None 


Member Function Documentation

_DWFCORE_API void DWFCore::DWFThreadMutex::destroy  )  throw ( DWFException ) [virtual]
 

Destroy the synchronization object. A client must always invoke this method after using this object.

Implements DWFCore::DWFSynchronization.

_DWFCORE_API void DWFCore::DWFThreadMutex::init  )  throw ( DWFException ) [virtual]
 

Initialize the synchronization object. A client must always invoke this method before using this object.

Exceptions:
None 

Implements DWFCore::DWFSynchronization.

_DWFCORE_API void DWFCore::DWFThreadMutex::lock  )  throw ( DWFException ) [virtual]
 

Blocking call to acquire ownership of the synchronization object.

Exceptions:
DWFException 

Implements DWFCore::DWFSynchronization.

Examples:
Threads/Threads.cpp.

_DWFCORE_API bool DWFCore::DWFThreadMutex::trylock  )  throw ( DWFException ) [virtual]
 

Non-blocking call to acquire ownership of the synchronization object. If the object cannot be locked, this method must return immediately.

Returns:
true if the object lock was acquired, false if the call would block waiting for the lock.
Exceptions:
DWFException 

Implements DWFCore::DWFSynchronization.

_DWFCORE_API void DWFCore::DWFThreadMutex::unlock  )  throw ( DWFException ) [virtual]
 

Relinquish ownership of the locked synchronization object.

Exceptions:
DWFException 

Implements DWFCore::DWFSynchronization.

Examples:
Threads/Threads.cpp.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:39:44 2009 for Autodesk DWF Core Library by  doxygen 1.4.5