arsa  2.7
Macros | Typedefs | Functions
arsa_thread.h File Reference
#include <arsa_begin_code.h>
#include <irrlicht.h>

Go to the source code of this file.

Macros

#define THREAD_STATE_SPAWN   0
 
#define THREAD_STATE_STARTED   1
 
#define THREAD_STATE_END   2
 

Typedefs

typedef int(* ThreadFunction) (void *data)
 

Functions

ARSA_API void ARSACALLCONV thread_Init ()
 
ARSA_API void ARSACALLCONV thread_Free ()
 
ARSA_API void ARSACALLCONV thread_Clear ()
 
ARSA_API irr::core::stringc ARSACALLCONV thread_Add (ThreadFunction func, void *userdata)
 return guid, empty is false More...
 
ARSA_API bool ARSACALLCONV thread_Remove (const irr::core::stringc &guid)
 
ARSA_API bool ARSACALLCONV thread_Exe (const irr::core::stringc &guid)
 
ARSA_API bool ARSACALLCONV thread_ExeThread (const irr::core::stringc &guid)
 
ARSA_API bool ARSACALLCONV thread_IsIdOk (const irr::core::stringc &guid)
 
ARSA_API bool ARSACALLCONV thread_IsEmpty ()
 
ARSA_API bool ARSACALLCONV thread_IsEnd (const irr::core::stringc &guid)
 equal if( thread_GetState() == THREAD_STATE_END ) More...
 
ARSA_API irr::u32 ARSACALLCONV thread_GetCount ()
 0 is empty More...
 
ARSA_API int ARSACALLCONV thread_GetReturn (const irr::core::stringc &guid)
 
ARSA_API int ARSACALLCONV thread_GetState (const irr::core::stringc &guid)
 
ARSA_API void ARSACALLCONV thread_SetState (const irr::core::stringc &guid, int state)
 
ARSA_API void *ARSACALLCONV thread_GetUserData (const irr::core::stringc &guid)
 
ARSA_API void ARSACALLCONV thread_LockMuTex (const irr::core::stringc &guid)
 
ARSA_API void ARSACALLCONV thread_UnlockMuTex (const irr::core::stringc &guid)
 
ARSA_API irr::core::stringc ARSACALLCONV thread_GetGUID (void *data)
 data come from parameter of pointer function thread More...
 

Macro Definition Documentation

◆ THREAD_STATE_END

#define THREAD_STATE_END   2

Definition at line 11 of file arsa_thread.h.

◆ THREAD_STATE_SPAWN

#define THREAD_STATE_SPAWN   0

Definition at line 9 of file arsa_thread.h.

◆ THREAD_STATE_STARTED

#define THREAD_STATE_STARTED   1

Definition at line 10 of file arsa_thread.h.

Typedef Documentation

◆ ThreadFunction

typedef int(* ThreadFunction) (void *data)

Definition at line 7 of file arsa_thread.h.

Function Documentation

◆ thread_Add()

ARSA_API irr::core::stringc ARSACALLCONV thread_Add ( ThreadFunction  func,
void userdata 
)

return guid, empty is false

◆ thread_Clear()

ARSA_API void ARSACALLCONV thread_Clear ( )

◆ thread_Exe()

ARSA_API bool ARSACALLCONV thread_Exe ( const irr::core::stringc guid)

◆ thread_ExeThread()

ARSA_API bool ARSACALLCONV thread_ExeThread ( const irr::core::stringc guid)

◆ thread_Free()

ARSA_API void ARSACALLCONV thread_Free ( )

◆ thread_GetCount()

ARSA_API irr::u32 ARSACALLCONV thread_GetCount ( )

0 is empty

◆ thread_GetGUID()

ARSA_API irr::core::stringc ARSACALLCONV thread_GetGUID ( void data)

data come from parameter of pointer function thread

◆ thread_GetReturn()

ARSA_API int ARSACALLCONV thread_GetReturn ( const irr::core::stringc guid)

◆ thread_GetState()

ARSA_API int ARSACALLCONV thread_GetState ( const irr::core::stringc guid)

◆ thread_GetUserData()

ARSA_API void* ARSACALLCONV thread_GetUserData ( const irr::core::stringc guid)

◆ thread_Init()

ARSA_API void ARSACALLCONV thread_Init ( )

◆ thread_IsEmpty()

ARSA_API bool ARSACALLCONV thread_IsEmpty ( )

◆ thread_IsEnd()

ARSA_API bool ARSACALLCONV thread_IsEnd ( const irr::core::stringc guid)

equal if( thread_GetState() == THREAD_STATE_END )

◆ thread_IsIdOk()

ARSA_API bool ARSACALLCONV thread_IsIdOk ( const irr::core::stringc guid)

◆ thread_LockMuTex()

ARSA_API void ARSACALLCONV thread_LockMuTex ( const irr::core::stringc guid)

◆ thread_Remove()

ARSA_API bool ARSACALLCONV thread_Remove ( const irr::core::stringc guid)

◆ thread_SetState()

ARSA_API void ARSACALLCONV thread_SetState ( const irr::core::stringc guid,
int  state 
)

◆ thread_UnlockMuTex()

ARSA_API void ARSACALLCONV thread_UnlockMuTex ( const irr::core::stringc guid)