CMPI 2.1.0 API
|
Variables | |
CMPI_MUTEX_TYPE(* | CMPIBrokerExtFT::newMutex )(int opt) |
Create a POSIX threading-conformant mutex. More... | |
void(* | CMPIBrokerExtFT::destroyMutex )(CMPI_MUTEX_TYPE mutex) |
Destroy a POSIX threading-conformant mutex. (Deprecated) More... | |
void(* | CMPIBrokerExtFT::lockMutex )(CMPI_MUTEX_TYPE mutex) |
Lock a POSIX threading-conformant mutex. (Deprecated) More... | |
void(* | CMPIBrokerExtFT::unlockMutex )(CMPI_MUTEX_TYPE mutex) |
Unlock a POSIX threading-conformant mutex. (Deprecated) More... | |
int(* | CMPIBrokerExtFT::destroyMutex2 )(CMPI_MUTEX_TYPE mutex) |
Destroy a POSIX threading-conformant mutex. More... | |
int(* | CMPIBrokerExtFT::lockMutex2 )(CMPI_MUTEX_TYPE mutex) |
Lock a POSIX threading-conformant mutex. More... | |
int(* | CMPIBrokerExtFT::unlockMutex2 )(CMPI_MUTEX_TYPE mutex) |
Unlock a POSIX threading-conformant mutex. More... | |
CMPI_MUTEX_TYPE(* CMPIBrokerExtFT::newMutex)(int opt) |
Create a POSIX threading-conformant mutex.
CMPIBrokerExtFT.newMutex() creates a POSIX threading-conformant mutex.
The mutex that is created shall be of a type that exhibits the following behavior:
This behavior is consistent with mutex type PTHREAD_MUTEX_RECURSIVE defined in IEEE 1003.1.
opt | For future use. It should be ignored by the MB, and MIs should pass a value of 0. |
If successful, the handle of the new mutex will be returned.
If not successful, NULL will be returned.
opt
to be for future use.PTHREAD_MUTEX_RECURSIVE
defined in IEEE 1003.1. void(* CMPIBrokerExtFT::destroyMutex)(CMPI_MUTEX_TYPE mutex) |
Destroy a POSIX threading-conformant mutex. (Deprecated)
CMPIBrokerExtFT.destroyMutex() destroys a POSIX threading-conformant mutex.
mutex | Handle of the mutex to be destroyed. |
void(* CMPIBrokerExtFT::lockMutex)(CMPI_MUTEX_TYPE mutex) |
Lock a POSIX threading-conformant mutex. (Deprecated)
CMPIBrokerExtFT.lockMutex() locks a POSIX threading-conformant mutex.
If the mutex is locked by another thread, the current thread is suspended until the lock is granted.
The behavior in case the mutex is already locked by the current thread is defined in the description of CMPIBrokerExtFT.newMutex().
mutex | Handle of the mutex to be locked. |
void(* CMPIBrokerExtFT::unlockMutex)(CMPI_MUTEX_TYPE mutex) |
Unlock a POSIX threading-conformant mutex. (Deprecated)
CMPIBrokerExtFT.unlockMutex() unlocks a POSIX threading-conformant mutex.
The behavior in case the mutex is not locked by the current thread is defined in the description of CMPIBrokerExtFT.newMutex().
mutex | Handle of the mutex to be unlocked. |
int(* CMPIBrokerExtFT::destroyMutex2)(CMPI_MUTEX_TYPE mutex) |
Destroy a POSIX threading-conformant mutex.
CMPIBrokerExtFT.destroyMutex2() destroys a POSIX threading-conformant mutex.
mutex | Handle of the mutex to be destroyed. |
If successful, zero will be returned.
If not successful, a non-zero error code will be returned.
errno.h
, specifically for the pthread_mutex_destroy()
function; both are defined in IEEE 1003.1.int(* CMPIBrokerExtFT::lockMutex2)(CMPI_MUTEX_TYPE mutex) |
Lock a POSIX threading-conformant mutex.
CMPIBrokerExtFT.lockMutex2() locks a POSIX threading conformant mutex.
If the mutex is locked by another thread, the current thread is suspended until the lock is granted.
The behavior in case the mutex is already locked by the current thread is defined in the description of CMPIBrokerExtFT.newMutex().
mutex | Handle of the mutex to be locked. |
If successful, zero will be returned.
If not successful, a non-zero error code will be returned.
errno.h
, specifically for the pthread_mutex_lock()
function; both are defined in IEEE 1003.1.int(* CMPIBrokerExtFT::unlockMutex2)(CMPI_MUTEX_TYPE mutex) |
Unlock a POSIX threading-conformant mutex.
CMPIBrokerExtFT.unlockMutex2() unlocks a POSIX threading conformant mutex.
The behavior in case the mutex is not locked by the current thread is defined in the description of CMPIBrokerExtFT.newMutex().
mutex | Handle of the mutex to be unlocked. |
If successful, zero will be returned.
If not successful, a non-zero error code will be returned.
errno.h
, specifically for the pthread_mutex_lock()
function; both are defined in IEEE 1003.1.