zenilib: zenilib/jni/external/sdl/src/thread/psp/SDL_sysmutex.c File Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
SDL_sysmutex.c File Reference
`#include "SDL_config.h"`
`#include "SDL_thread.h"`
`#include "SDL_systhread_c.h"`

Go to the source code of this file.

## Functions

SDL_mutex * | SDL_CreateMutex (void)
void | SDL_DestroyMutex (SDL_mutex *mutex)
int | SDL_mutexP (SDL_mutex *mutex)
int | SDL_mutexV (SDL_mutex *mutex)

## Function Documentation

SDL_mutex* SDL_CreateMutex | ( | void |  | ) |

Create a mutex, initialized unlocked.

Definition at line 38 of file SDL_sysmutex.c.

References NULL, SDL_CreateSemaphore(), SDL_free(), SDL_malloc(), and SDL_OutOfMemory.

void SDL_DestroyMutex | ( | SDL_mutex * | mutex | ) |

Destroy a mutex.

Definition at line 61 of file SDL_sysmutex.c.

References SDL_DestroySemaphore(), and SDL_free().

int SDL_mutexP | ( | SDL_mutex * | mutex | ) |

Definition at line 73 of file SDL_sysmutex.c.

References NULL, SDL_SemWait(), SDL_SetError(), and SDL_ThreadID().

int SDL_mutexV | ( | SDL_mutex * | mutex | ) |

Definition at line 103 of file SDL_sysmutex.c.

References NULL, SDL_SemPost(), SDL_SetError(), and SDL_ThreadID().