## NAME

mr_sigpost - send a signal to a thread

## SYNOPSIS

#include <mrendez.h>

int mr_sigpost( pthread_t pthread_id , int signal_num );

Callable from ISR.

## DESCRIPTION

The primitive mr_sigpost() is used to send a signal to a thread which is expected to perform a mr_sigrecv() or mr_receive().

signal_num specfies the signal number to send taking values from zero to 31.

## RETURN VALUES

mr_sigpost() returns 0 on success and returns an error number if it fails. It doses not set errno.

## ERRORS

EBADID
  The calling thread has attempted to signal a pthread_id which does not represent a thread in the system.
EINVAL
  The calling thread has attempted to use an invalid signal number.

## SEE ALSO

mr_receive(), mr_sigrecv()

#### Home page (Kernel)

## < Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2018 >