rtai-core/include/rtai_sem.h File Reference


Detailed Description

Author:
Paolo Mantegazza
Note:
Copyright © 1999-2003 Paolo Mantegazza <mantegazza@aero.polimi.it>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Include dependency graph for rtai_sem.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define rt_sem_init(name, value)   rt_typed_sem_init(name, value, CNT_SEM)
#define rt_cond_init(name)   rt_typed_sem_init(name, 0, BIN_SEM)

Functions

int rt_sem_delete (SEM *sem)
 Delete a semaphore.

int rt_named_sem_delete (SEM *sem)
 Delete a semaphore initialized in named mode.

int rt_sem_signal (SEM *sem)
 Signaling a semaphore.

int rt_sem_broadcast (SEM *sem)
 Signaling a semaphore.

int rt_sem_wait (SEM *sem)
 Take a semaphore.

int rt_sem_wait_if (SEM *sem)
 Take a semaphore, only if the calling task is not blocked.

int rt_sem_wait_until (SEM *sem, RTIME time)
 Wait a semaphore with timeout.

int rt_sem_wait_timed (SEM *sem, RTIME delay)
 Wait a semaphore with timeout.

int rt_sem_wait_barrier (SEM *sem)
 Wait on a semaphore barrier.

int rt_cond_signal (CND *cnd)
 Wait for a signal to a conditional variable.

int rt_cond_wait (CND *cnd, SEM *mutex)
 Wait for a signal to a conditional variable.

int rt_cond_wait_until (CND *cnd, SEM *mutex, RTIME time)
 Wait a semaphore with timeout.

int rt_cond_wait_timed (CND *cnd, SEM *mutex, RTIME delay)
 Wait a semaphore with timeout.


Generated on Sat Jul 24 19:36:11 2004 for RTAI API by doxygen 1.3.4