MPSolve 3.2.1
Loading...
Searching...
No Matches
mt-types.h File Reference

Implementation of some thread-safe types that can be easily used with the macro MPS_LOCK() and MPS_UNLOCK(). More...

#include <pthread.h>
#include <mps/mps.h>

Go to the source code of this file.

Classes

struct  mps_boolean_mt
 A thread safe version of mps_boolean. More...
 
struct  mps_long_int_mt
 A thread safe version of mps_boolean. More...
 

Macros

#define MPS_LOCK(x)   (pthread_mutex_lock (&(x).mutex))
 
#define MPS_UNLOCK(x)   (pthread_mutex_unlock (&(x).mutex))
 
#define MPS_INIT_LOCK(x)   (pthread_mutex_init (&(x).mutex, NULL))
 

Detailed Description

Implementation of some thread-safe types that can be easily used with the macro MPS_LOCK() and MPS_UNLOCK().