Subversion Repositories Kolibri OS

Rev

Rev 6068 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. #ifndef __LBSYNC_H__
  2. #define __LBSYNC_H__
  3.  
  4. typedef struct
  5. {
  6.     volatile int lock;
  7.     unsigned int handle;
  8. }mutex_t;
  9.  
  10. int __fastcall mutex_init(mutex_t *mutex);
  11. int __fastcall mutex_destroy(mutex_t *mutex);
  12. void __fastcall mutex_lock(mutex_t *mutex);
  13. int __fastcall mutex_trylock (mutex_t *mutex);
  14. void __fastcall mutex_unlock(mutex_t *mutex);
  15.  
  16. #endif
  17.