blob: 2bd0967e784a2fec6ca5685d50714c63a36d4488 (
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
53
54
55
56
57
58
59
|
// -*- c++ -*-
//
// $Id$
// CORBA dup/release build on top of COM's (why not).
ACE_INLINE void
CORBA::release (CORBA::ORB_ptr obj)
{
if (obj)
obj->Release ();
}
ACE_INLINE ULONG
CORBA_ORB::AddRef (void)
{
ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, guard, lock_, 0));
return refcount_++;
}
ACE_INLINE CORBA::ORB_ptr
CORBA_ORB::_duplicate (CORBA::ORB_ptr obj)
{
if (obj)
obj->AddRef ();
return obj;
}
// Null pointers represent nil objects.
ACE_INLINE CORBA::ORB_ptr
CORBA_ORB::_nil (void)
{
return 0;
}
ACE_INLINE CORBA::Boolean
CORBA::is_nil (CORBA::ORB_ptr obj)
{
return (CORBA::Boolean) (obj == 0);
}
ACE_INLINE CORBA::Boolean
CORBA_ORB::work_pending (void)
{
// There's ALWAYS work to do ;-)
return CORBA::B_TRUE;
}
ACE_INLINE void
CORBA_ORB::shutdown (CORBA::Boolean wait_for_completion)
{
ACE_UNUSED_ARG (wait_for_completion);
this->should_shutdown_ = CORBA::B_TRUE;
TAO_ORB_Core_instance ()->reactor ()->wakeup_all_threads ();
return;
}
|