eventstore-client-c/mutex.h
Nicolas Dextraze 716a6223a7 First commit
2018-03-18 22:44:23 -07:00

19 lines
309 B
C

//
// Created by nicol on 2018-03-18.
//
#ifndef ESC_MUTEX_H
#define ESC_MUTEX_H
#ifdef _WIN32
#include <windows.h>
typedef LPCRITICAL_SECTION mutex_t;
#endif
mutex_t mutex_create();
void mutex_lock(mutex_t mutex);
void mutex_unlock(mutex_t mutex);
void mutex_destroy(mutex_t mutex);
#endif //ESC_MUTEX_H