ddk: update includes
git-svn-id: svn://kolibrios.org@5347 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
f55e40ca74
commit
e354ae97d1
@ -41,20 +41,27 @@
|
|||||||
|
|
||||||
#define FASTCALL __attribute__ ((fastcall)) __attribute__ ((dllimport))
|
#define FASTCALL __attribute__ ((fastcall)) __attribute__ ((dllimport))
|
||||||
|
|
||||||
|
void FASTCALL InitRwsem(struct rw_semaphore *sem)__asm__("InitRwsem");
|
||||||
void FASTCALL DownRead(struct rw_semaphore *sem)__asm__("DownRead");
|
void FASTCALL DownRead(struct rw_semaphore *sem)__asm__("DownRead");
|
||||||
void FASTCALL DownWrite(struct rw_semaphore *sem)__asm__("DownWrite");
|
void FASTCALL DownWrite(struct rw_semaphore *sem)__asm__("DownWrite");
|
||||||
void FASTCALL UpRead(struct rw_semaphore *sem)__asm__("UpRead");
|
void FASTCALL UpRead(struct rw_semaphore *sem)__asm__("UpRead");
|
||||||
void FASTCALL UpWrite(struct rw_semaphore *sem)__asm__("UpWrite");
|
void FASTCALL UpWrite(struct rw_semaphore *sem)__asm__("UpWrite");
|
||||||
|
|
||||||
|
static inline void __init_rwsem(struct rw_semaphore *sem, const char *name,
|
||||||
|
struct lock_class_key *key)
|
||||||
|
{
|
||||||
|
InitRwsem(sem);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* lock for reading
|
* lock for reading
|
||||||
*/
|
*/
|
||||||
static inline void __down_read(struct rw_semaphore *sem)
|
static inline void down_read(struct rw_semaphore *sem)
|
||||||
{
|
{
|
||||||
DownRead(sem);
|
DownRead(sem);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void __down_write(struct rw_semaphore *sem)
|
static inline void down_write(struct rw_semaphore *sem)
|
||||||
{
|
{
|
||||||
DownWrite(sem);
|
DownWrite(sem);
|
||||||
}
|
}
|
||||||
@ -62,7 +69,7 @@ static inline void __down_write(struct rw_semaphore *sem)
|
|||||||
/*
|
/*
|
||||||
* unlock after reading
|
* unlock after reading
|
||||||
*/
|
*/
|
||||||
static inline void __up_read(struct rw_semaphore *sem)
|
static inline void up_read(struct rw_semaphore *sem)
|
||||||
{
|
{
|
||||||
UpRead(sem);
|
UpRead(sem);
|
||||||
}
|
}
|
||||||
@ -70,7 +77,7 @@ static inline void __up_read(struct rw_semaphore *sem)
|
|||||||
/*
|
/*
|
||||||
* unlock after writing
|
* unlock after writing
|
||||||
*/
|
*/
|
||||||
static inline void __up_write(struct rw_semaphore *sem)
|
static inline void up_write(struct rw_semaphore *sem)
|
||||||
{
|
{
|
||||||
UpWrite(sem);
|
UpWrite(sem);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user