next up previous contents index
Next: 25.6 CPU Inheritance Framework Up: 25.5 InterThread Communication Previous: 25.5.4 oskit_ipc_call: make a

25.5.5 oskit_ipc_reply: reply to a synchronous IPC invocation

 

SYNOPSIS

#include <oskit/threads/pthread.h>
#include <oskit/threads/ipc.h>

oskit_error_t oskit_ipc_reply(pthread_t src, void *msg, oskit_size_t msg_size);

DESCRIPTION

Reply to a synchronous IPC invocation made with oskit_ipc_call. The destination thread is specified by its pthread_t, and it must be blocked in a call operation, waiting for the reply message. If the destination thread is canceled before the reply is made, this call with return OSKIT_ECANCELED.

PARAMETERS

dst
The pthread_t of the destination thread.
msg
The message buffer.
msg_size
The size of the message, in bytes.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.


Utah Flux Research Group