This implements su_msg_t message passing functionality using pthreads.
Kai Vehmanen <kai.vehmanen@nokia-email.address.hidden>
#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. |
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.
0 | if successful | |
-1 | upon an error |