blob: ca12d9eb514d54aaad04f269bca825791b4d1b9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// $Id$
#include "mld.h"
ACE_Atomic_Op < ACE_Mutex, int >mld::counter_ (0);
// Increment the counter when a new mld is created...
mld::mld (void)
{
++counter_;
}
// and decrement it when the object is destructed.
mld::~mld (void)
{
--counter_;
}
int mld::value (void)
{
return counter_.value ();
}
|