cp_multimap_lock(3)
| cp_multimap(3) | libcprops - cp_multimap | cp_multimap(3) |
NAME
cp_multimap_lock, cp_multimap_rdlock, cp_multimap_wrlock, cp_multimap_unlock - multimap locking functions
SYNOPSIS
#include <cprops/multimap.h>
int cp_multimap_lock(cp_multimap *tree, int
type);
int cp_multimap_rdlock(cp_multimap *tree);
int cp_multimap_wrlock(cp_multimap *tree);
int cp_multimap_unlock(cp_multimap *tree);
DESCRIPTION
cp_multimap_lock and cp_multimap_unlock provide locking for maps not initialized with the COLLECTION_MODE_NOSYNC mode bit set. cp_multimap_rdlock and cp_multimap_wrlock are aliases for cp_multimap_lock with a type parameter of COLLECTION_LOCK_READ and COLLECTION_LOCK_WRITE respectively.
RETURN VALUE
locking functions return 0 on success, non-zero on error.
| OCT 2007 | libcprops.0.1.7 |
