libnx
Data Structures | Functions
rwlock.h File Reference

Read/write lock synchronization primitive. More...

#include "../kernel/mutex.h"

Go to the source code of this file.

Data Structures

struct  RwLock
 Read/write lock structure. More...
 

Functions

void rwlockReadLock (RwLock *r)
 Locks the read/write lock for reading. More...
 
void rwlockReadUnlock (RwLock *r)
 Unlocks the read/write lock for reading. More...
 
void rwlockWriteLock (RwLock *r)
 Locks the read/write lock for writing. More...
 
void rwlockWriteUnlock (RwLock *r)
 Unlocks the read/write lock for writing. More...
 

Detailed Description

Read/write lock synchronization primitive.

Author
plutoo

Function Documentation

void rwlockReadLock ( RwLock r)

Locks the read/write lock for reading.

Parameters
rRead/write lock object.
void rwlockReadUnlock ( RwLock r)

Unlocks the read/write lock for reading.

Parameters
rRead/write lock object.
void rwlockWriteLock ( RwLock r)

Locks the read/write lock for writing.

Parameters
rRead/write lock object.
void rwlockWriteUnlock ( RwLock r)

Unlocks the read/write lock for writing.

Parameters
rRead/write lock object.