Defines | Functions | Variables
opensslthreadlock.c File Reference
#include <stdio.h>
#include <pthread.h>
#include <openssl/err.h>
Include dependency graph for opensslthreadlock.c:

Go to the source code of this file.

Defines

#define MUTEX_CLEANUP(x)   pthread_mutex_destroy(&(x))
#define MUTEX_LOCK(x)   pthread_mutex_lock(&(x))
#define MUTEX_SETUP(x)   pthread_mutex_init(&(x), NULL)
#define MUTEX_TYPE   pthread_mutex_t
#define MUTEX_UNLOCK(x)   pthread_mutex_unlock(&(x))
#define THREAD_ID   pthread_self()

Functions

void handle_error (const char *file, int lineno, const char *msg)
static unsigned long id_function (void)
static void locking_function (int mode, int n, const char *file, int line)
int thread_cleanup (void)
int thread_setup (void)

Variables

static MUTEX_TYPEmutex_buf = NULL

Define Documentation

#define MUTEX_CLEANUP (   x)    pthread_mutex_destroy(&(x))

Definition at line 39 of file opensslthreadlock.c.

#define MUTEX_LOCK (   x)    pthread_mutex_lock(&(x))

Definition at line 40 of file opensslthreadlock.c.

#define MUTEX_SETUP (   x)    pthread_mutex_init(&(x), NULL)

Definition at line 38 of file opensslthreadlock.c.

#define MUTEX_TYPE   pthread_mutex_t

Definition at line 37 of file opensslthreadlock.c.

#define MUTEX_UNLOCK (   x)    pthread_mutex_unlock(&(x))

Definition at line 41 of file opensslthreadlock.c.

#define THREAD_ID   pthread_self()

Definition at line 42 of file opensslthreadlock.c.


Function Documentation

void handle_error ( const char *  file,
int  lineno,
const char *  msg 
)

Definition at line 45 of file opensslthreadlock.c.

static unsigned long id_function ( void  ) [static]

Definition at line 63 of file opensslthreadlock.c.

static void locking_function ( int  mode,
int  n,
const char *  file,
int  line 
) [static]

Definition at line 55 of file opensslthreadlock.c.

int thread_cleanup ( void  )

Definition at line 82 of file opensslthreadlock.c.

int thread_setup ( void  )

Definition at line 68 of file opensslthreadlock.c.


Variable Documentation

MUTEX_TYPE* mutex_buf = NULL [static]

Definition at line 53 of file opensslthreadlock.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09