blob: 64ffdf1b14464f3d35f73e8642cb8d08bf83c39d (
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 ();
}
|