summaryrefslogtreecommitdiff
path: root/ace/Monitor_Size.cpp
blob: 3982d41193bbf99dd6c78e6800b85ed95f11ba28 (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
// $Id$

#include "ace/Monitor_Size.h"

#if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)

#include "ace/Guard_T.h"

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

namespace ACE
{
  namespace Monitor_Control
  {
    Size_Monitor::Size_Monitor (void)
      : Monitor_Base ("", Monitor_Control_Types::MC_NUMBER)
    {
    }

    Size_Monitor::Size_Monitor (const char* name)
      : Monitor_Base (name, Monitor_Control_Types::MC_NUMBER)
    {
    }

    Size_Monitor::~Size_Monitor (void)
    {
    }

    void
    Size_Monitor::update (void)
    {
      // No platform-specific or periodic code is needed, receive() can be
      // called directly whenever the size changes.
    }

    void
    Size_Monitor::clear (void)
    {
      this->Monitor_Base::clear ();
    }
  }
}

ACE_END_VERSIONED_NAMESPACE_DECL

#endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */