Searched refs:pList (Results 1 – 2 of 2) sorted by relevance
26 bool listInit(listHead* pList) in listInit() argument28 pList->pFirst = NULL; in listInit()29 if(pthread_mutex_init(&pList->mutex, NULL) == -1) in listInit()38 bool listDestroy(listHead* pList) in listDestroy() argument42 bListNotEmpty = listGetAndRemoveNext(pList, NULL); in listDestroy()45 if(pthread_mutex_destroy(&pList->mutex) == -1) in listDestroy()54 bool listAdd(listHead* pList, void* pData) in listAdd() argument72 pthread_mutex_lock(&pList->mutex); in listAdd()75 if (pList->pFirst == NULL) in listAdd()78 pList->pFirst = pNode; in listAdd()[all …]
38 bool listInit(listHead* pList);39 bool listDestroy(listHead* pList);40 bool listAdd(listHead* pList, void* pData);41 bool listRemove(listHead* pList, void* pData);42 bool listGetAndRemoveNext(listHead* pList, void** ppData);43 void listDump(listHead* pList);