su_pthread_port.c File Reference


Detailed Description

OS-Independent Syncronization Interface with pthreads.

This implements su_msg_t message passing functionality using pthreads.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>

Kai Vehmanen <kai.vehmanen@nokia-email.address.hidden>

Date:
Created: Tue Sep 14 15:51:04 1999 ppessi

#include "config.h"
#include <stdlib.h>
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include "sofia-sip/su.h"
#include "su_port.h"
#include "sofia-sip/su_alloc.h"

Include dependency graph for su_pthread_port.c:


Functions

int su_pthreaded_port_start (su_port_create_f *create, su_root_t *parent, su_clone_r return_clone, su_root_magic_t *magic, su_root_init_f init, su_root_deinit_f deinit)
 Start a clone task running under a pthread.
void su_pthread_port_wait (su_clone_r rclone)
 Wait for the pthread clone to exit.
int su_pthread_port_execute (su_task_r const task, int(*function)(void *), void *arg, int *return_value)
 Execute the function by a pthread task.

Function Documentation

int su_pthread_port_execute ( su_task_r const   task,
int(*)(void *)  function,
void *  arg,
int *  return_value 
)

Execute the function by a pthread task.

Return values:
0 if successful
-1 upon an error
See also:
su_task_execute()


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