summaryrefslogtreecommitdiff
path: root/TAO/tao/Condition.inl
blob: 6e41744850938142d3ab120722525b826d3a2212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// -*- C++ -*-
//
TAO_BEGIN_VERSIONED_NAMESPACE_DECL

template <class MUTEX> ACE_INLINE int
TAO_Condition<MUTEX>::wait ()
{
  return this->cond_->wait ();
}

template <class MUTEX> ACE_INLINE int
TAO_Condition<MUTEX>::wait (MUTEX &mutex,
                            const ACE_Time_Value *abstime)
{
  return this->cond_->wait (mutex,
                           abstime);
}

/// Peform an "alertable" timed wait.  If the argument ABSTIME == 0
/// then we do a regular cond_wait(), else we do a timed wait for up to
/// @a abstime
template <class MUTEX> ACE_INLINE int
TAO_Condition<MUTEX>::wait (const ACE_Time_Value *abstime)
{
  return this->wait (*this->mutex_, abstime);
}

template<class MUTEX> ACE_INLINE int
TAO_Condition<MUTEX>::remove ()
{
  return this->cond_->remove ();
}

template<class MUTEX> ACE_INLINE MUTEX *
TAO_Condition<MUTEX>::mutex ()
{
  return this->mutex_;
}

template <class MUTEX> ACE_INLINE int
TAO_Condition<MUTEX>::signal ()
{
  return this->cond_->signal ();
}

template <class MUTEX> ACE_INLINE int
TAO_Condition<MUTEX>::broadcast ()
{
  return this->cond_->broadcast ();
}

TAO_END_VERSIONED_NAMESPACE_DECL