view Isolated/SimpleMutex.h @ 43:a55e1f3d8f10

merged
author Eric Wing <ewing@anscamobile.com>
date Tue, 30 Aug 2011 19:43:49 -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