su_alloc_lock.c File Reference


Detailed Description

Thread-locking for su_alloc module.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Fri Feb 23 17:38:11 2001 ppessi

#include "config.h"
#include <sofia-sip/su_alloc.h>
#include <sofia-sip/su.h>
#include <pthread.h>
#include <assert.h>
#include <stdlib.h>

Include dependency graph for su_alloc_lock.c:


Functions

int su_home_threadsafe (su_home_t *home)
 Convert su_home_t object to a thread-safe one.

Function Documentation

int su_home_threadsafe ( su_home_t home  ) 

Convert su_home_t object to a thread-safe one.

Convert a memory home object as thread-safe by allocating mutexes and modifying function pointers in su_alloc.c module.

Parameters:
home memory home object to be converted thread-safe.
Return values:
0 when successful,
-1 upon an error.


Sofia-SIP 1.12.6 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.