arsa  2.7
arsa_thread.h
Go to the documentation of this file.
1 #ifndef __ARSA_THREAD_H__
2 #define __ARSA_THREAD_H__
3 
4 #include <arsa_begin_code.h>
5 #include <irrlicht.h>
6 
7 typedef int (*ThreadFunction)(void *data);
8 
9 #define THREAD_STATE_SPAWN 0
10 #define THREAD_STATE_STARTED 1
11 #define THREAD_STATE_END 2
12 
13 extern ARSA_API void ARSACALLCONV thread_Init();
14 extern ARSA_API void ARSACALLCONV thread_Free();
15 extern ARSA_API void ARSACALLCONV thread_Clear();
16 
19 
20 extern ARSA_API bool ARSACALLCONV thread_Remove(const irr::core::stringc& guid);
21 extern ARSA_API bool ARSACALLCONV thread_Exe(const irr::core::stringc& guid);
23 extern ARSA_API bool ARSACALLCONV thread_IsIdOk(const irr::core::stringc& guid);
25 
27 extern ARSA_API bool ARSACALLCONV thread_IsEnd(const irr::core::stringc& guid);
28 
31 
34 extern ARSA_API void ARSACALLCONV thread_SetState(const irr::core::stringc& guid, int state );
38 
41 
42 #endif // !__ARSA_THREAD_H__
int(* ThreadFunction)(void *data)
Definition: arsa_thread.h:7
ARSA_API bool ARSACALLCONV thread_Remove(const irr::core::stringc &guid)
ARSA_API bool ARSACALLCONV thread_IsEmpty()
ARSA_API void ARSACALLCONV thread_Free()
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
ARSA_API irr::core::stringc ARSACALLCONV thread_GetGUID(void *data)
data come from parameter of pointer function thread
ARSA_API bool ARSACALLCONV thread_IsEnd(const irr::core::stringc &guid)
equal if( thread_GetState() == THREAD_STATE_END )
Main header file of the irrlicht, the only file needed to include.
ARSA_API bool ARSACALLCONV thread_Exe(const irr::core::stringc &guid)
Very simple string class with some useful features.
Definition: irrString.h:37
ARSA_API void ARSACALLCONV thread_Init()
ARSA_API int ARSACALLCONV thread_GetReturn(const irr::core::stringc &guid)
ARSA_API bool ARSACALLCONV thread_ExeThread(const irr::core::stringc &guid)
ARSA_API void ARSACALLCONV thread_SetState(const irr::core::stringc &guid, int state)
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
ARSA_API irr::u32 ARSACALLCONV thread_GetCount()
0 is empty
ARSA_API void ARSACALLCONV thread_UnlockMuTex(const irr::core::stringc &guid)
ARSA_API void ARSACALLCONV thread_Clear()
ARSA_API irr::core::stringc ARSACALLCONV thread_Add(ThreadFunction func, void *userdata)
return guid, empty is false
GLenum func
#define ARSA_API
ARSA_API int ARSACALLCONV thread_GetState(const irr::core::stringc &guid)
ARSA_API bool ARSACALLCONV thread_IsIdOk(const irr::core::stringc &guid)
ARSA_API void ARSACALLCONV thread_LockMuTex(const irr::core::stringc &guid)
ARSA_API void *ARSACALLCONV thread_GetUserData(const irr::core::stringc &guid)
#define ARSACALLCONV