version 1.13, 2005/03/03 19:27:56
|
version 1.16, 2006/01/30 16:18:08
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// Josephine Eskaline Joyce (jojustin@in.ibm.com) for PEP#101 | // Josephine Eskaline Joyce (jojustin@in.ibm.com) for PEP#101 |
// Sean Keenan, Hewlett-Packard Company <sean.keenan@hp.com> | // Sean Keenan, Hewlett-Packard Company <sean.keenan@hp.com> |
// Roger Kumpf, Hewlett-Packard Company <roger_kumpf@hp.com> | // Roger Kumpf, Hewlett-Packard Company <roger_kumpf@hp.com> |
|
// Aruran, IBM (ashanmug@in.ibm.com) for Bug#4585 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
ProviderModule::~ProviderModule() | ProviderModule::~ProviderModule() |
{ | { |
|
if (_library != 0) |
|
{ |
|
System::unloadDynamicLibrary(_library); |
|
_library = 0; |
|
_refCount = 0; |
|
} |
} | } |
| |
CIMProvider* ProviderModule::load(const String& providerName) | CIMProvider* ProviderModule::load(const String& providerName) |
|
|
| |
void ProviderModule::unloadModule() | void ProviderModule::unloadModule() |
{ | { |
if (_refCount.DecAndTestIfZero()) |
if (_refCount.decAndTestIfZero()) |
{ | { |
if (_library != 0) | if (_library != 0) |
{ | { |