#include <pthread.h>
#include "sync_list.h"
#include "../mc_list/list.h"
#include "../include/mc_error.h"
Go to the source code of this file.
Functions | |
int | syncListNodeInit (struct syncListNode_s *node) |
struct syncListNode_s * | syncListNodeNew (void) |
int | syncListNodeDestroy (struct syncListNode_s *node) |
int | syncListAddNode (struct syncListNode_s *node, list_t *list) |
int | syncListNew (int id, list_t *list) |
int | syncListDelete (int id, list_t *list) |
syncListNode_t * | syncListRemove (int id, list_t *list) |
int | syncListNode_CmpID (int *key, syncListNode_t *node) |
int syncListAddNode | ( | struct syncListNode_s * | node, | |
list_t * | list | |||
) |
Definition at line 56 of file sync_list.c.
References syncListNode_s::id, ListAdd(), ListSearchCB(), and syncListNode_CmpID().
Referenced by MC_SyncInit(), and syncListNew().
int syncListDelete | ( | int | id, | |
list_t * | list | |||
) |
Definition at line 83 of file sync_list.c.
References ListDeleteCB(), MC_ERR_NOT_FOUND, syncListNode_CmpID(), and syncListNodeDestroy().
Referenced by MC_SyncDelete().
int syncListNew | ( | int | id, | |
list_t * | list | |||
) |
Definition at line 72 of file sync_list.c.
References syncListNode_s::id, syncListAddNode(), and syncListNodeInit().
int syncListNode_CmpID | ( | int * | key, | |
syncListNode_t * | node | |||
) |
Definition at line 101 of file sync_list.c.
References syncListNode_s::id.
Referenced by MC_CondBroadcast(), MC_CondReset(), MC_CondSignal(), MC_CondWait(), MC_MutexLock(), MC_MutexUnlock(), MC_SemaphorePost(), MC_SemaphoreWait(), MC_SyncInit(), syncListAddNode(), syncListDelete(), and syncListRemove().
int syncListNodeDestroy | ( | struct syncListNode_s * | node | ) |
Definition at line 44 of file sync_list.c.
References syncListNode_s::cond, COND_DESTROY, syncListNode_s::lock, MUTEX_DESTROY, syncListNode_s::sem, and SEMAPHORE_DESTROY.
Referenced by mc_platform_Destroy(), and syncListDelete().
int syncListNodeInit | ( | struct syncListNode_s * | node | ) |
Definition at line 11 of file sync_list.c.
References CHECK_NULL, syncListNode_s::cond, COND_INIT, COND_T, syncListNode_s::lock, MUTEX_INIT, MUTEX_T, syncListNode_s::sem, SEMAPHORE_INIT, and SEMAPHORE_T.
Referenced by syncListNew().
struct syncListNode_s* syncListNodeNew | ( | void | ) | [read] |
Definition at line 26 of file sync_list.c.
References CHECK_NULL, syncListNode_s::cond, COND_INIT, COND_T, syncListNode_s::lock, MUTEX_INIT, MUTEX_T, syncListNode_s::sem, SEMAPHORE_INIT, SEMAPHORE_T, and syncListNode_s::signalled.
Referenced by MC_SyncInit().
syncListNode_t* syncListRemove | ( | int | id, | |
list_t * | list | |||
) |
Definition at line 94 of file sync_list.c.
References ListDeleteCB(), and syncListNode_CmpID().