version 1.3, 2003/08/16 14:52:27
|
version 1.6.2.1, 2005/08/12 22:52:43
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software 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 |
|
|
// | // |
// Author: Dong Xiang, EMC Corporation (xiang_dong@emc.com) | // Author: Dong Xiang, EMC Corporation (xiang_dong@emc.com) |
// | // |
// Modified By: |
// Modified By: Seema Gupta (gseema@in.ibm.com) for PEP135 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
CIMInstance instance = request->indicationInstance; | CIMInstance instance = request->indicationInstance; |
String url = request->destinationPath; | String url = request->destinationPath; |
ContentLanguages contentLangs = request->contentLanguages; |
ContentLanguages contentLangs =((ContentLanguageListContainer)request->operationContext. |
|
get(ContentLanguageListContainer::NAME)).getLanguages(); |
| |
deliverIndication(url,instance,contentLangs); | deliverIndication(url,instance,contentLangs); |
| |
|
|
url, | url, |
instance, | instance, |
contentLangs); | contentLangs); |
_thread_pool->allocate_and_awaken(event,deliver_routine); |
ThreadStatus rtn = _thread_pool->allocate_and_awaken(event,deliver_routine); |
|
|
|
if (rtn != PEGASUS_THREAD_OK) |
|
{ |
|
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::TRACE, |
|
"Not enough threads to allocate a worker to deliver the event. "); |
|
|
|
Tracer::trace(TRC_SERVER, Tracer::LEVEL2, |
|
"Could not allocate thread to deliver event. Instead using current thread."); |
|
delete event; |
|
throw Exception("Not enough threads to allocate a worker to deliver the event."); |
|
} |
} | } |
} | } |
PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL CIMListenerIndicationDispatcherRep::deliver_routine(void *param) | PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL CIMListenerIndicationDispatcherRep::deliver_routine(void *param) |