cmpi
|
#include <cmpi/cmpift.h>
Public Member Functions | |
CMPI_THREAD_RETURN (CMPI_THREAD_CDECL *start)(void *) | |
This structure is a table of pointers to extended broker CIMOM services This table is made available by the Management Broker, whenever a provider is loaded and initialized. This is an extension used by Pegasus to support platform dependencies.
_CMPIBrokerExtFT::CMPI_THREAD_RETURN | ( | CMPI_THREAD_CDECL * | start | ) |
Start a new thread using the POSIX threading semantics.
start | Pointer to the function to be started as a thread. |
param | Pointer to the function to be started as a thread. |
detached | If not zero, defines that the thread should run in detached mode. |
int(* _CMPIBrokerExtFT::cancelThread) (CMPI_THREAD_TYPE thread) |
Cancel the thread using the POSIX threading semantics.
thread | The thread to be canceled. |
int(* _CMPIBrokerExtFT::condWait) (CMPI_COND_TYPE cond, CMPI_MUTEX_TYPE mutex) |
Wait until condition is signalled. This function returns when condition has been signalled already and otherwise must wait for the signal and then return.
cond | The handle of the condition variable to be used. |
mutex | The handle of a locked mutex guarding this condition variable. |
int(* _CMPIBrokerExtFT::createThreadKey) (CMPI_THREAD_KEY_TYPE *key, void(*cleanup)(void *)) |
void(* _CMPIBrokerExtFT::destroyCondition) (CMPI_COND_TYPE cond) |
Destroy a condition variable.
cond | The condition variable to be destroyed. |
void(* _CMPIBrokerExtFT::destroyMutex) (CMPI_MUTEX_TYPE mutex) |
Destroy a POSIX threading conformant mutex.
mutex | The mutex to be destroyed. |
int(* _CMPIBrokerExtFT::destroyThreadKey) (CMPI_THREAD_KEY_TYPE key) |
Destroy a POSIX threading conformant thread key.
key | The key to be destroyed. |
void int _CMPIBrokerExtFT::detached |
int(* _CMPIBrokerExtFT::exitThread) (CMPI_THREAD_RETURN return_code) |
Causes the current thread to exit with the passed in return code using POSIX threading semantics.
return_code | Is the return code that should be used for the thread. |
int _CMPIBrokerExtFT::ftVersion |
Function table version
void*(* _CMPIBrokerExtFT::getThreadSpecific) (CMPI_THREAD_KEY_TYPE key) |
Return data from the thread local store using a thread key.
key | The key to be used to retrieve the data. |
int(* _CMPIBrokerExtFT::joinThread) (CMPI_THREAD_TYPE thread, CMPI_THREAD_RETURN *retval) |
Waits until the specified thread ends using the POSIX threading semantics.
thread | The thread ID of the thread waiting for completion. |
retval | Pointer to the return value of the thread. |
void(* _CMPIBrokerExtFT::lockMutex) (CMPI_MUTEX_TYPE mutex) |
Attempt to get control of the mutex and must wait until released when not available.
mutex | The mutex to be locked. |
CMPI_COND_TYPE(* _CMPIBrokerExtFT::newCondition) (int opt) |
Create a new POSIX threading-conformant condition variable.
opt | The POSIX options. If not options are to be defined the 0 values must be used. |
CMPI_MUTEX_TYPE(* _CMPIBrokerExtFT::newMutex) (int opt) |
Create a POSIX threading conformant mutex.
opt | The POSIX options. If not options are to be defined the 0 values must be used. |
void* _CMPIBrokerExtFT::parm |
char*(* _CMPIBrokerExtFT::resolveFileName) (const char *filename) |
This function complements a generic dynamic library nameto its OS-dependent native format.
filename | Pointer to the generic library name, |
int(* _CMPIBrokerExtFT::setThreadSpecific) (CMPI_THREAD_KEY_TYPE key, void *value) |
Set a pointer to data in the therad local store using a thread key.
key | The key to be used. |
value | The pointer to the data. |
int(* _CMPIBrokerExtFT::signalCondition) (CMPI_COND_TYPE cond) |
Sends a signal to a condition variable.
cond | Specifies the handle of the condition variable to send the signal. |
int(* _CMPIBrokerExtFT::threadOnce) (int *once, void(*init)(void)) |
Executes the specified function procedure only once during the lifetime of the thread.
once | The pointer to the counter. |
The | function to be called |
int(* _CMPIBrokerExtFT::threadSleep) (CMPIUint32 msec) |
Suspends the execution of the current thread for the specified duration.
msec | The suspend duration in milliseconds. |
int(* _CMPIBrokerExtFT::timedCondWait) (CMPI_COND_TYPE cond, CMPI_MUTEX_TYPE mutex, struct timespec *wait) |
Wait until the condition is signalled using a timeout value. This function shall return when condition has been signalled already and otherwise must wait for the signal and then return. The function shall return when the timeout specification elapses before the condition is signalled.
cond | Specifies the handle of the condition variable to be used. |
mutex | Specifies the handle of a locked mutex guarding this condition variable. |
wait | Specifies the timeout value. |
void(* _CMPIBrokerExtFT::unlockMutex) (CMPI_MUTEX_TYPE mutex) |
Release control of the mutex.
mutex | The mutex to be unlocked. |