(file) Return to ProviderManagerService.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / Attic

Diff for /pegasus/src/Pegasus/ProviderManager2/Attic/ProviderManagerService.h between version 1.36 and 1.37

version 1.36, 2006/07/11 18:39:35 version 1.37, 2006/08/04 19:05:59
Line 61 
Line 61 
  
 #include <Pegasus/ProviderManager2/Linkage.h> #include <Pegasus/ProviderManager2/Linkage.h>
  
   #ifdef PEGASUS_ZOS_SECURITY
   // This include file will not be provided in the OpenGroup CVS for now.
   // Do NOT try to include it in your compile
   #include <Pegasus/ProviderManager2/ProviderManagerzOS_inline.h>
   #endif
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 #define IDLE_LIMIT 300 #define IDLE_LIMIT 300
Line 136 
Line 142 
  
 }; };
  
   // Auto class to encapsulate enabling and disabling
   // of the pthread_security on z/OS
   // For all other platforms this should be an empty class
   // Targets: avoid ifdefs and keep code readable(clean)
   #ifndef PEGASUS_ZOS_THREADLEVEL_SECURITY
   // not z/OS == empty class
   class PEGASUS_PPM_LINKAGE AutoPThreadSecurity
   {
   public:
       AutoPThreadSecurity(const OperationContext& context) {};
   };
   #else
   
   class PEGASUS_PPM_LINKAGE AutoPThreadSecurity
   {
   public:
       AutoPThreadSecurity(const OperationContext& context)
       {
                   int err_num=enablePThreadSecurity(context);
                   if (err_num!=0)
                   {
                           // need a new CIMException for this
                           throw CIMException(CIM_ERR_ACCESS_DENIED,String(strerror(err_num)));
                   }
       };
   
       ~AutoPThreadSecurity()
       {
           disablePThreadSecurity();
       };
   };
   
   #endif
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif #endif


Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2