mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
Fix semaphore.h formatting to match semaphore.c
This commit is contained in:
parent
76435da16d
commit
6d20b298cb
@ -22,23 +22,23 @@ typedef struct Semaphore
|
|||||||
* @param s Semaphore object.
|
* @param s Semaphore object.
|
||||||
* @param initial_count initial value for internal counter (typically the # of free resources).
|
* @param initial_count initial value for internal counter (typically the # of free resources).
|
||||||
*/
|
*/
|
||||||
void semaphoreInit(Semaphore * s, u64 initial_count);
|
void semaphoreInit(Semaphore *s, u64 initial_count);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Increments the Semaphore to allow other threads to continue.
|
* @brief Increments the Semaphore to allow other threads to continue.
|
||||||
* @param s Semaphore object.
|
* @param s Semaphore object.
|
||||||
*/
|
*/
|
||||||
void semaphoreSignal(Semaphore * s);
|
void semaphoreSignal(Semaphore *s);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Decrements Semaphore and waits if 0.
|
* @brief Decrements Semaphore and waits if 0.
|
||||||
* @param s Semaphore object.
|
* @param s Semaphore object.
|
||||||
*/
|
*/
|
||||||
void semaphoreWait(Semaphore * s);
|
void semaphoreWait(Semaphore *s);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Attempts to get lock without waiting.
|
* @brief Attempts to get lock without waiting.
|
||||||
* @param s Semaphore object.
|
* @param s Semaphore object.
|
||||||
* @return true if no wait and successful lock, false otherwise.
|
* @return true if no wait and successful lock, false otherwise.
|
||||||
*/
|
*/
|
||||||
bool semaphoreTryWait(Semaphore * s);
|
bool semaphoreTryWait(Semaphore *s);
|
||||||
|
Loading…
Reference in New Issue
Block a user