forked from KolibriOS/kolibrios
DDK update - includes
git-svn-id: svn://kolibrios.org@1967 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
7d00917461
commit
88b9ca48fa
@ -13,6 +13,7 @@
|
|||||||
#define __IDR_H__
|
#define __IDR_H__
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
#include <errno-base.h>
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
//#include <linux/init.h>
|
//#include <linux/init.h>
|
||||||
//#include <linux/rcupdate.h>
|
//#include <linux/rcupdate.h>
|
||||||
|
@ -56,6 +56,14 @@ struct mutex_waiter {
|
|||||||
int *task;
|
int *task;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#define __MUTEX_INITIALIZER(lockname) \
|
||||||
|
{ .count = ATOMIC_INIT(1) \
|
||||||
|
, .wait_list = LIST_HEAD_INIT(lockname.wait_list) }
|
||||||
|
|
||||||
|
#define DEFINE_MUTEX(mutexname) \
|
||||||
|
struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
|
||||||
|
|
||||||
void __attribute__ ((fastcall)) __attribute__ ((dllimport))
|
void __attribute__ ((fastcall)) __attribute__ ((dllimport))
|
||||||
mutex_init(struct mutex*)__asm__("MutexInit");
|
mutex_init(struct mutex*)__asm__("MutexInit");
|
||||||
void __attribute__ ((fastcall)) __attribute__ ((dllimport))
|
void __attribute__ ((fastcall)) __attribute__ ((dllimport))
|
||||||
|
Loading…
Reference in New Issue
Block a user