view Isolated/SimpleMutex.h @ 46:d7da72703681

Added AL_SOURCE_STATE to luaal
author Eric Wing <ewing@anscamobile.com>
date Tue, 13 Sep 2011 18:11:34 -0700
parents 71b465ff0622
children 208a9ed20087
line wrap: on
line source

/* Copyright: Eric Wing 2003 */

#ifndef SIMPLE_MUTEX_H
#define SIMPLE_MUTEX_H

#ifdef __cplusplus
extern "C" {
#endif
	

typedef struct SimpleMutex SimpleMutex;

SimpleMutex* SimpleMutex_CreateMutex(void);
void SimpleMutex_DestroyMutex(SimpleMutex* simple_mutex);
int SimpleMutex_LockMutex(SimpleMutex* simple_mutex);
void SimpleMutex_UnlockMutex(SimpleMutex* simple_mutex);


/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif

#endif