Program: bbtk
Module: $RCSfile: bbtkPackage.h,v $
Language: C++
- Date: $Date: 2009/01/13 08:45:27 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2009/05/19 10:19:23 $
+ Version: $Revision: 1.13 $
=========================================================================*/
/* ---------------------------------------------------------------------
const std::string& pkgname,
const std::string& path);
+ /// NOTE : All the static methods below for package destruction
+ /// are not member because they can cause the package death
+ /// and thus close the dynamic library from which it has been loaded.
+ /// If the dynamic lib which provides a function is closed while
+ /// in the function: imagine the crash !
+ /// The principal method is Release
+
/// UnLoads the package dynamic library
/// (if any and if the package is released)
/// If doit == false then does not do it but just
/// "Releases" the package
/// Signals the package that it can free its descriptors
- /// if they are no more used and frees and unloads the package
+ /// if they are no more used
+ /// then frees and unloads the package
/// if it is no more used (released)
/// Note : Any non-weak pointer on the package must have been freed
static void Release(Package::WeakPointer p);