Lines Matching defs:pHandle
115 TIMM_OSAL_TASK *pHandle = TIMM_OSAL_NULL;
122 pHandle =
125 if (pHandle == TIMM_OSAL_NULL)
132 TIMM_OSAL_Memset((TIMM_OSAL_PTR) pHandle, 0, sizeof(TIMM_OSAL_TASK));
135 pHandle->uArgc = uArgc;
136 pHandle->pArgv = pArgv;
138 pHandle->isCreated = TIMM_OSAL_FALSE;
141 if (SUCCESS != pthread_attr_init(&pHandle->ThreadAttr))
148 if (SUCCESS != pthread_attr_getschedparam(&pHandle->ThreadAttr,
156 if (SUCCESS != pthread_attr_setschedparam(&pHandle->ThreadAttr,
164 if (SUCCESS != pthread_attr_getstacksize(&pHandle->ThreadAttr,
175 if (SUCCESS != pthread_attr_setstacksize(&pHandle->ThreadAttr,
185 if (SUCCESS != pthread_create(&pHandle->threadID,
186 &pHandle->ThreadAttr, pFunc, pArgv))
194 pHandle->isCreated = TIMM_OSAL_TRUE;
195 *pTask = (TIMM_OSAL_PTR) pHandle;
197 /**pTask = (TIMM_OSAL_PTR *)pHandle;*/
200 /* if((TIMM_OSAL_ERR_NONE != bReturnStatus) && (TIMM_OSAL_NULL != pHandle)) {
201 TIMM_OSAL_Free (pHandle->stackPtr);*/
204 TIMM_OSAL_Free(pHandle);
222 TIMM_OSAL_TASK *pHandle = (TIMM_OSAL_TASK *) pTask;
225 if ((NULL == pHandle) || (TIMM_OSAL_TRUE != pHandle->isCreated))
231 if (pthread_attr_destroy(&pHandle->ThreadAttr))
236 if (pthread_join(pHandle->threadID, &retVal))
243 TIMM_OSAL_Free(pHandle);