Guardtime KSI c SDK
Macros | Typedefs | Enumerations | Functions
mutex.h File Reference

Go to the source code of this file.

Macros

#define KSI_LOCK(n)   KSI_LOCK_set(KSI_LOCK_ON, (n), __FILE__, __LINE__)
 
#define KSI_UNLOCK(n)   KSI_LOCK_set(KSI_LOCK_OFF, (n), __FILE__, __LINE__)
 

Typedefs

typedef int(* KSI_Lock_cb) (int mode, int n, const char *file, int line)
 

Enumerations

enum  KSI_Lock_en {
  KSI_MUTEX_GLOBALS = 0, KSI_MUTEX_TRANSPORT, KSI_MUTEX_HASHING, KSI_MUTEX_CRYPTO,
  __KSI_NUMBER_OF_LOCKS
}
 
enum  KSI_LockMode_en { KSI_LOCK_ON = 0x01, KSI_LOCK_OFF = 0x02 }
 

Functions

int KSI_LOCK_count ()
 
int KSI_LOCK_setCallback (KSI_Lock_cb cb)
 
int KSI_LOCK_set (int mode, int n, const char *file, int line)