Searched refs:pList (Results 1 – 2 of 2) sorted by relevance
37 int listInit(struct listHead* pList) { in listInit() argument38 pList->pFirst = NULL; in listInit()39 if (pthread_mutex_init(&pList->mutex, NULL) == -1) { in listInit()56 int listDestroy(struct listHead* pList) { in listDestroy() argument59 bListNotEmpty = listGetAndRemoveNext(pList, NULL); in listDestroy()62 if (pthread_mutex_destroy(&pList->mutex) == -1) { in listDestroy()79 int listAdd(struct listHead* pList, void* pData) { in listAdd() argument93 pthread_mutex_lock(&pList->mutex); in listAdd()96 if (pList->pFirst == NULL) { in listAdd()98 pList->pFirst = pNode; in listAdd()[all …]
72 int listInit(struct listHead* pList);73 int listDestroy(struct listHead* pList);74 int listAdd(struct listHead* pList, void* pData);75 int listRemove(struct listHead* pList, void* pData);76 int listGetAndRemoveNext(struct listHead* pList, void** ppData);77 void listDump(struct listHead* pList);