OpenCores
URL https://opencores.org/ocsvn/bw_tiff_compression/bw_tiff_compression/trunk

Subversion Repositories bw_tiff_compression

[/] [bw_tiff_compression/] [trunk/] [client_application/] [src/] [Kernel/] [CDeviceState.cpp] - Blame information for rev 16

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 amulder
/*
2
 * @file     DeviceState.cpp
3
 * @date     May 14, 2012
4
 * @author   Aart Mulder
5
 */
6
 
7
#include "CDeviceState.h"
8
 
9
CDeviceState::CDeviceState()
10
{
11
        this->m_eDeviceState = DEVICE_STATE_STOP;
12
}
13
 
14
CDeviceState::~CDeviceState()
15
{
16
}
17
 
18
EDeviceState CDeviceState::GetDeviceState()
19
{
20
        EDeviceState eDeviceState;
21
        this->m_oMutex.lock();
22
        eDeviceState = this->m_eDeviceState;
23
        this->m_oMutex.unlock();
24
        return eDeviceState;
25
}
26
 
27
void CDeviceState::SetDeviceState(EDeviceState eDeviceState)
28
{
29
        this->m_oMutex.lock();
30
        this->m_eDeviceState = eDeviceState;
31
        this->m_oMutex.unlock();
32
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.