OCILIB (C and C++ Driver for Oracle)  4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
Loading...
Searching...
No Matches
ocilib::Mutex Class Reference

Static class allowing managing mutexes. More...

#include <types.hpp>

Static Public Member Functions

static MutexHandle Create ()
 Create a Mutex handle.
 
static void Destroy (MutexHandle handle)
 Destroy a mutex handle.
 
static void Acquire (MutexHandle handle)
 Acquire a mutex lock.
 
static void Release (MutexHandle handle)
 Release a mutex lock.
 

Detailed Description

Static class allowing managing mutexes.

This class wraps the OCILIB object handle OCI_Mutex and its related methods

See Threads and mutexes for more details on Oracle multi-threading support

Definition at line 1240 of file types.hpp.

Member Function Documentation

◆ Create()

MutexHandle ocilib::Mutex::Create ( )
inlinestatic

Create a Mutex handle.

Returns
Mutex handle on success or NULL on failure

Definition at line 28 of file Mutex.hpp.

References ocilib::core::Check(), and OCI_MutexCreate().

◆ Destroy()

void ocilib::Mutex::Destroy ( MutexHandle  handle)
inlinestatic

Destroy a mutex handle.

Parameters
handle- Mutex handle

Definition at line 33 of file Mutex.hpp.

References ocilib::core::Check(), and OCI_MutexFree().

◆ Acquire()

void ocilib::Mutex::Acquire ( MutexHandle  handle)
inlinestatic

Acquire a mutex lock.

Parameters
handle- Mutex handle

Definition at line 38 of file Mutex.hpp.

References ocilib::core::Check(), and OCI_MutexAcquire().

◆ Release()

void ocilib::Mutex::Release ( MutexHandle  handle)
inlinestatic

Release a mutex lock.

Parameters
handle- Mutex handle

Definition at line 43 of file Mutex.hpp.

References ocilib::core::Check(), and OCI_MutexRelease().