/home/dko/projects/mobilec/trunk/src/mc_sync/sync_list.c File Reference

#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_ssyncListNodeNew (void)
int syncListNodeDestroy (struct syncListNode_s *node)
syncListNode_tsyncListFind (int id, struct syncList_s *list)
struct syncList_ssyncListInit (void)
int syncListAddNode (struct syncListNode_s *node, struct syncList_s *list)
int syncListNew (int id, struct syncList_s *list)
int syncListDelete (int id, struct syncList_s *list)
syncListNode_tsyncListRemove (int id, struct syncList_s *list)


Function Documentation

int syncListAddNode ( struct syncListNode_s node,
struct syncList_s list 
)

int syncListDelete ( int  id,
struct syncList_s list 
)

syncListNode_t* syncListFind ( int  id,
struct syncList_s list 
)

struct syncList_s* syncListInit ( void   )  [read]

Definition at line 72 of file sync_list.c.

References ListInitialize(), syncList_s::lock, MUTEX_INIT, MUTEX_T, RWLOCK_INIT, and RWLOCK_T.

Referenced by mc_platform_Initialize().

int syncListNew ( int  id,
struct syncList_s list 
)

Definition at line 105 of file sync_list.c.

References node, syncListAddNode(), and syncListNodeInit().

int syncListNodeDestroy ( struct syncListNode_s node  ) 

int syncListNodeInit ( struct syncListNode_s node  ) 

struct syncListNode_s* syncListNodeNew ( void   )  [read]

syncListNode_t* syncListRemove ( int  id,
struct syncList_s list 
)


Generated on Thu Nov 13 14:22:58 2008 for Mobile-C by  doxygen 1.5.5