1/*******************************************************************************
2**+--------------------------------------------------------------------------+**
3**|                                                                          |**
4**| Copyright 1998-2008 Texas Instruments, Inc. - http://www.ti.com/         |**
5**|                                                                          |**
6**| Licensed under the Apache License, Version 2.0 (the "License");          |**
7**| you may not use this file except in compliance with the License.         |**
8**| You may obtain a copy of the License at                                  |**
9**|                                                                          |**
10**|     http://www.apache.org/licenses/LICENSE-2.0                           |**
11**|                                                                          |**
12**| Unless required by applicable law or agreed to in writing, software      |**
13**| distributed under the License is distributed on an "AS IS" BASIS,        |**
14**| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |**
15**| See the License for the specific language governing permissions and      |**
16**| limitations under the License.                                           |**
17**|                                                                          |**
18**+--------------------------------------------------------------------------+**
19*******************************************************************************/
20
21// TIOsLib.cpp : Defines the entry point for the DLL application.
22//
23#include "CommonOAL.h"
24
25#ifdef _WINDOWS
26#endif //_WINDOWS
27
28
29//////////////////////////////////////////////////////////////////////
30// TI_OAL Class
31//////////////////////////////////////////////////////////////////////
32TI_OAL*  TI_OAL::_instance        = NULL;
33tiUINT32   TI_OAL::m_uReferenceCount= 0;
34//////////////////////////////////////////////////////////////////////
35// Construction/Destruction
36//////////////////////////////////////////////////////////////////////
37
38TI_OAL::TI_OAL()
39{
40}
41
42TI_OAL::~TI_OAL()
43{
44}
45
46TI_OSCriticalSection::TI_OSCriticalSection()
47{
48    m_pWrapCS = TI_OSWrapCriticalSection::CreateObject();
49}
50
51TI_OSCriticalSection::~TI_OSCriticalSection()
52{
53    if ( m_pWrapCS )
54    {
55	TI_OSWrapCriticalSection::DeleteObject(m_pWrapCS);
56        m_pWrapCS = NULL;
57    }
58}
59
60tiVOID
61TI_OSCriticalSection::Enter()
62{
63    if ( m_pWrapCS )
64        m_pWrapCS->Enter();
65}
66
67tiVOID
68TI_OSCriticalSection::Leave()
69{
70    if ( m_pWrapCS )
71        m_pWrapCS->Leave();
72}
73
74
75/*******************************************************************************************/
76/*******************************************************************************************/
77/*******************************************************************************************/
78/*
79TI_OSEvent::TI_OSEvent()
80{
81    m_pWrapEvent = TI_OSWrapEvent::CreateObject();
82}
83
84TI_OSEvent::~TI_OSEvent()
85{
86    if ( m_pWrapEvent )
87        delete m_pWrapEvent;
88}
89
90tiVOID
91TI_OSEvent::Set()
92{
93    if ( m_pWrapEvent )
94        m_pWrapEvent->Set();
95}
96
97tiVOID
98TI_OSEvent::Reset()
99{
100    if ( m_pWrapEvent )
101        m_pWrapEvent->Reset();
102}
103
104tiUINT32
105TI_OSEvent::Wait(tiUINT32 uTime)
106{
107    if ( !m_pWrapEvent )
108        return TI_RESULT_FAILED;
109
110    return m_pWrapEvent->Wait(uTime);
111}
112*/
113