gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WindowsLock Class Reference

#include <windows_hal.hpp>

Inheritance diagram for WindowsLock:
Inheritance graph
Collaboration diagram for WindowsLock:
Collaboration graph

Protected Member Functions

 WindowsLock ()
 
bool initialize (OSLockType type)
 Initializes lock interface. More...
 
OSLockResult lock ()
 Acquires lock. More...
 
OSLockResult trylock ()
 Tries to acquire lock. More...
 
OSLockResult unlock ()
 Releases lock. More...
 
- Protected Member Functions inherited from OSLock
 OSLock ()
 
bool initialize (OSLockType type)
 Initializes locking mechanism. More...
 

Friends

class WindowsLockFactory
 

Additional Inherited Members

Detailed Description

Provides lock interface for windows

Constructor & Destructor Documentation

WindowsLock::WindowsLock ( )
inlineprotected

Default constructor

Member Function Documentation

bool WindowsLock::initialize ( OSLockType  type)
inlineprotected

Initializes lock interface.

Parameters
typeOSLockType
OSLockResult WindowsLock::lock ( )
inlineprotectedvirtual

Acquires lock.

Returns
OSLockResult type

Implements OSLock.

OSLockResult WindowsLock::trylock ( )
inlineprotectedvirtual

Tries to acquire lock.

Returns
OSLockResult type

Implements OSLock.

OSLockResult WindowsLock::unlock ( )
inlineprotectedvirtual

Releases lock.

Returns
OSLockResult type

Implements OSLock.


The documentation for this class was generated from the following file: