Commit 724799c7 authored by Pekka Pessi's avatar Pekka Pessi

su_alloc.c: marked new features for release 1.12.8.

darcs-hash:20080117125233-65a35-7c6045edeb1a200573028fdac03e6dd84b611918.gz
parent d615734e
......@@ -1493,7 +1493,10 @@ int su_home_mutex_lock(su_home_t *home)
return 0;
}
/** Release exclusive lock on home and decrease refcount (if home is threadsafe) */
/** Release exclusive lock on home and decrease refcount (if home is threadsafe).
*
* @sa su_home_unlock().
*/
int su_home_mutex_unlock(su_home_t *home)
{
if (home == NULL)
......@@ -1515,9 +1518,15 @@ int su_home_mutex_unlock(su_home_t *home)
/** Obtain exclusive lock on home without increasing refcount.
*
* Unless su_home_threadsafe() has been used to intialize locking on home
* object the function just returns -1.
*
* @return 0 if successful, -1 if not threadsafe, error code otherwise.
*
* @sa su_home_mutex_lock(), su_home_unlock(), su_home_trylock().
*
* @NEW_1_12_8
*/
int su_home_lock(su_home_t *home)
{
......@@ -1536,6 +1545,9 @@ int su_home_lock(su_home_t *home)
* @return 0 if successful, -1 if not threadsafe,
* EBUSY if already locked, error code otherwise.
*
* @sa su_home_lock(), su_home_unlock().
*
* @NEW_1_12_8
*/
int su_home_trylock(su_home_t *home)
{
......@@ -1549,9 +1561,15 @@ int su_home_trylock(su_home_t *home)
}
/** Release exclusive lock on home.
/** Release exclusive lock on home.
*
* Release lock without decreasing refcount.
*
* @return 0 if successful, -1 if not threadsafe, error code otherwise.
*
* @sa su_home_lock(), su_home_trylock(), su_home_mutex_unlock().
*
* @NEW_1_12_8
*/
int su_home_unlock(su_home_t *home)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment