forked from KolibriOS/kolibrios
1918b713af
pixlib3: enable linear texture filtration libsync: user space synchronization git-svn-id: svn://kolibrios.org@5602 a494cfbc-eb01-0410-851d-a64ba20cac60
17 lines
369 B
C
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
|