ACE_DLL_Manager Class ReferenceThis class is a singleton and serves as a factory and repository for instances of ACE_DLL_Handle. More...
Collaboration diagram for ACE_DLL_Manager:
![]()
Detailed DescriptionThis class is a singleton and serves as a factory and repository for instances of ACE_DLL_Handle.This class is a singleton whose lifetime is managed by the ACE_Framework_Repository. Although it is normally meant to be used directly only by ACE_DLL, applications can call the unload_policy() methods in order get/set the the dll unload policy. Unload policies include per_process/per-dll and eager/lazy. Dlls can export set their own policy by using the ACE_DLL_UNLOAD_POLICY macro found in config-all.h. If a dll choses to set an unload policy, it will be used when the per-dll policy (the default) is in effect. If the per-dll policy is in effect and a dll has not chosen to set a policy, the current per-process policy will be used. The following policy macros are provided in config-all.h: ACE_DLL_UNLOAD_POLICY_PER_PROCESS - Per-process policy that unloads dlls eagerly. ACE_DLL_UNLOAD_POLICY_PER_DLL - Apply policy on a per-dll basis. If the dll doesn't use one of the macros below, the current per-process policy will be used. ACE_DLL_UNLOAD_POLICY_LAZY - Don't unload dll when refcount reaches zero, i.e., wait for either an explicit unload request or program exit. ACE_DLL_UNLOAD_POLICY_DEFAULT - Default policy allows dlls to control their own destinies, but will unload those that don't make a choice eagerly. Member Enumeration Documentation
Constructor & Destructor Documentation
Default constructor.
Destructor.
Member Function Documentation
Return a unique instance.
Factory for ACE_DLL_Handle objects. If one already exits, its refcount is incremented.
Close the underlying dll. Decrements the refcount.
Returns the current per-process UNLOAD_POLICY.
Set the per-process UNLOAD_POLICY. If the policy is changed from LAZY to EAGER, then it will also unload any dlls with zero refcounts.
Close the singleton instance.
Friends And Related Function Documentation
Member Data Documentation
Vector containing all loaded handle objects.
Current number of handles.
Maximum number of handles.
Unload strategy.
Pointer to a process-wide ACE_DLL_Manager.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:14:45 2008 for ACE by ![]() |