kolibrios/contrib/sdk/sources/newlib/libc/include/libsync.h
Sergey Semyonov (Serge) 1918b713af newlib: struct dirent
pixlib3: enable linear texture filtration
libsync: user space synchronization

git-svn-id: svn://kolibrios.org@5602 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-07-23 10:10:52 +00:00

17 lines
369 B
C

#ifndef __LBSYNC_H__
#define __LBSYNC_H__
typedef struct
{
volatile int lock;
unsigned int handle;
}mutex_t;
int __fastcall mutex_init(mutex_t *mutex);
int __fastcall mutex_destroy(mutex_t *mutex);
void __fastcall mutex_lock(mutex_t *mutex);
int __fastcall mutex_trylock (mutex_t *mutex);
void __fastcall mutex_unlock(mutex_t *mutex);
#endif