#include <oskit/threads/pthread.h>
#include <oskit/threads/ipc.h>oskit_error_t oskit_ipc_send(pthread_t dst, void *msg, oskit_size_t msg_size, oskit_s32_t timeout);
Send a message to another thread. The destination thread is specified by its pthread_t. The sending thread blocks until the receiving thread notices the message and actually initiates a receive operation for it. Control returns to the caller only when the receiver has initiated the receive.The timeout value is currently ignored.
- dst
- The pthread_t of the destination thread.
- msg
- The message buffer.
- msg_size
- The size of the message, in bytes.
- timeout
- A timeout value. Currently ignored.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.