PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
lock.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/lock.h>
#include <kernel.h>
+ Include dependency graph for lock.c:

Go to the source code of this file.

Data Structures

struct  __lock
 

Functions

static void __common_lock_init (_LOCK_T lock)
 
static void __common_lock_init_recursive (_LOCK_T lock)
 
static void __common_lock_close (_LOCK_T lock)
 
static void __common_lock_close_recursive (_LOCK_T lock)
 

Detailed Description

The lock API functions required by newlib.

Definition in file lock.c.


Data Structure Documentation

◆ __lock

struct __lock

Definition at line 24 of file lock.c.

Data Fields
int32_t sem_id
int32_t thread_id
int32_t count

Function Documentation

◆ __common_lock_init()

static void __common_lock_init ( _LOCK_T  lock)
inlinestatic

Definition at line 62 of file lock.c.

◆ __common_lock_init_recursive()

static void __common_lock_init_recursive ( _LOCK_T  lock)
inlinestatic

Definition at line 75 of file lock.c.

◆ __common_lock_close()

static void __common_lock_close ( _LOCK_T  lock)
inlinestatic

Definition at line 88 of file lock.c.

◆ __common_lock_close_recursive()

static void __common_lock_close_recursive ( _LOCK_T  lock)
inlinestatic

Definition at line 93 of file lock.c.