Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / ace / Object_Manager.inl
blobbd27ee65a87673309bd49a624ecf9be6393e9492
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 int
6 ACE_Object_Manager::at_exit (ACE_Cleanup *object,
7                              void *param,
8                              const char* name)
10   return ACE_Object_Manager::instance ()->at_exit_i (
11     object,
12     (ACE_CLEANUP_FUNC) ACE_CLEANUP_DESTROYER_NAME,
13     param,
14     name);
17 ACE_INLINE
18 int
19 ACE_Object_Manager::at_exit (void *object,
20                              ACE_CLEANUP_FUNC cleanup_hook,
21                              void *param,
22                              const char* name)
24   return ACE_Object_Manager::instance ()->at_exit_i (
25     object,
26     cleanup_hook,
27     param,
28     name);
31 ACE_INLINE
32 int
33 ACE_Object_Manager::remove_at_exit (void *object)
35   return ACE_Object_Manager::instance ()->remove_at_exit_i (object);
38 ACE_INLINE
39 ACE_Sig_Set &
40 ACE_Object_Manager::default_mask ()
42   // A safe cast, but this static method shouldn't be used anyways.
43   // Use ACE_Object_Manager::default_mask () instead.
44   return
45     *reinterpret_cast<ACE_Sig_Set *> (ACE_OS_Object_Manager::default_mask ());
48 ACE_END_VERSIONED_NAMESPACE_DECL