blob: a1fccfa31cd7407362dc97194cde2f585702f287 (
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
|
#include "orbsvcs/LoadBalancing/LB_LoadAlert.h"
#if !defined (__ACE_INLINE__)
# include "orbsvcs/LoadBalancing/LB_LoadAlert.inl"
#endif /* __ACE_INLINE__ */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_LoadAlert::TAO_LB_LoadAlert ()
: alerted_ (0),
lock_ ()
{
}
TAO_LB_LoadAlert::~TAO_LB_LoadAlert ()
{
}
void
TAO_LB_LoadAlert::enable_alert ()
{
ACE_GUARD (TAO_SYNCH_MUTEX, monitor, this->lock_);
this->alerted_ = 1;
}
void
TAO_LB_LoadAlert::disable_alert ()
{
ACE_GUARD (TAO_SYNCH_MUTEX, monitor, this->lock_);
this->alerted_ = 0;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|