zenilib: zenilib/jni/external/sdl/src/thread/SDL_thread_c.h 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
Classes | Macros | Functions
SDL_thread_c.h File Reference
`#include "SDL_config.h"`
`#include "SDL_thread.h"`
`#include "generic/SDL_systhread_c.h"`
`#include "../SDL_error_c.h"`

Go to the source code of this file.

## Classes

struct | SDL_Thread
struct | SDL_TLSData

## Macros

#define | TLS_ALLOC_CHUNKSIZE 4

## Functions

SDL_TLSData * | SDL_Generic_GetTLSData ()
int | SDL_Generic_SetTLSData (SDL_TLSData *data)
void | SDL_RunThread (void *data)

## Macro Definition Documentation

#define TLS_ALLOC_CHUNKSIZE 4

Definition at line 71 of file SDL_thread_c.h.

Referenced by SDL_TLSSet().

## Function Documentation

SDL_TLSData* SDL_Generic_GetTLSData | ( |  | ) |

Definition at line 122 of file SDL_thread.c.

References NULL, SDL_AtomicLock(), SDL_AtomicUnlock(), SDL_CreateMutex(), SDL_LockMutex(), SDL_MemoryBarrierAcquire, SDL_MemoryBarrierRelease, SDL_ThreadID(), SDL_UnlockMutex(), and thread.

Referenced by SDL_SYS_GetTLSData().

int SDL_Generic_SetTLSData | ( | SDL_TLSData * | data | ) |

Definition at line 161 of file SDL_thread.c.

References NULL, SDL_free(), SDL_generic_TLS, SDL_LockMutex(), SDL_malloc(), SDL_OutOfMemory, SDL_ThreadID(), SDL_UnlockMutex(), and thread.

Referenced by SDL_SYS_SetTLSData().

void SDL_RunThread | ( | void * | data | ) |

Definition at line 263 of file SDL_thread.c.

References int, SDL_SemPost(), SDL_SYS_SetupThread(), SDL_ThreadID(), SDL_TLSCleanup(), and SDLCALL.

Referenced by RunThread(), and ThreadEntry().