This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: core/os/NyLPC_cThread.h
- Revision:
- 2:b96c1e90d120
- Parent:
- 1:9f6a78395432
- Child:
- 3:0a94993be1f6
--- a/core/os/NyLPC_cThread.h Mon Mar 25 05:23:49 2013 +0000 +++ b/core/os/NyLPC_cThread.h Wed Mar 27 12:07:47 2013 +0000 @@ -49,14 +49,13 @@ extern "C" { #endif /* __cplusplus */ - /** * 関数スレッドを実行します。 */ typedef struct NyLPC_TcThread NyLPC_TcThread_t; /** スレッドの関数型*/ -typedef int (*NyLPC_TcThread_ThreadFunc) (void* i_param); +typedef int (*NyLPC_TcThread_ThreadFunc)(void* i_param); /** */ #define NyLPC_TcThread_DEFAULT_STACKSIZE configMINIMAL_STACK_SIZE @@ -72,11 +71,9 @@ #define NyLPC_TcThread_PRIORITY_IDLE 0 #define NyLPC_TcThread_PRIORITY_SERVICE 1 - #if NyLPC_ARCH==NyLPC_ARCH_FREERTOS -struct NyLPC_TcThread -{ +struct NyLPC_TcThread { NyLPC_TUInt32 _sbit; xTaskHandle _taskid; NyLPC_TcThread_ThreadFunc _func; @@ -98,7 +95,6 @@ #error Bad NyLPC_ARCH! #endif - /** * 終了要求フラグの値を返します。 * スレッドのループ内で、Join要求の有無を確認するために使います。 @@ -107,8 +103,10 @@ #define NyLPC_cThread_isJoinReqest(i_inst) NyLPC_TUInt32_isBitOn((i_inst)->_sbit,NyLPC_TcThread_BIT_IS_JOIN_REQ) #define NyLPC_cThread_isTerminated(i_inst) NyLPC_TUInt32_isBitOn((i_inst)->_sbit,NyLPC_TcThread_BIT_IS_TERMINATED) -void NyLPC_cThread_initialize(NyLPC_TcThread_t* i_inst,NyLPC_TInt32 i_stack,NyLPC_TInt32 i_prio); -void NyLPC_cThread_start(NyLPC_TcThread_t* i_inst,NyLPC_TcThread_ThreadFunc i_func,void* i_param); +void NyLPC_cThread_initialize(NyLPC_TcThread_t* i_inst, NyLPC_TInt32 i_stack,NyLPC_TInt32 i_prio); +void NyLPC_cThread_finalize(NyLPC_TcThread_t* i_inst); +void NyLPC_cThread_start(NyLPC_TcThread_t* i_inst, + NyLPC_TcThread_ThreadFunc i_func, void* i_param); void NyLPC_cThread_join(NyLPC_TcThread_t* i_inst); void NyLPC_cThread_yield(); /** @@ -121,4 +119,4 @@ } #endif /* __cplusplus */ -#endif /* NYLPC_CTHREAD_H_ */ +#endif /* NYLPC_CTHREAD_H_ */ \ No newline at end of file