RTAI API 5.1
Loading...
Searching...
No Matches
sem.c File Reference

Semaphore functions. More...

Functions

RTAI_SYSCALL_MODE void rt_typed_sem_init (SEM *sem, int value, int type)
  More...
 
void rt_sem_init (SEM *sem, int value)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_delete (SEM *sem)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_signal (SEM *sem)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_broadcast (SEM *sem)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_wait (SEM *sem)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_wait_if (SEM *sem)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_wait_until (SEM *sem, RTIME time)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_wait_timed (SEM *sem, RTIME delay)
  More...
 
RTAI_SYSCALL_MODE int rt_sem_wait_barrier (SEM *sem)
  More...
 
RTAI_SYSCALL_MODE int rt_cond_signal (CND *cnd)
  More...
 
RTAI_SYSCALL_MODE int rt_cond_wait (CND *cnd, SEM *mtx)
  More...
 
RTAI_SYSCALL_MODE int rt_cond_wait_until (CND *cnd, SEM *mtx, RTIME time)
  More...
 
RTAI_SYSCALL_MODE int rt_cond_wait_timed (CND *cnd, SEM *mtx, RTIME delay)
  More...
 
RTAI_SYSCALL_MODE int rt_typed_rwl_init (RWL *rwl, int type)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_delete (RWL *rwl)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_rdlock (RWL *rwl)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_rdlock_if (RWL *rwl)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_rdlock_until (RWL *rwl, RTIME time)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_rdlock_timed (RWL *rwl, RTIME delay)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_wrlock (RWL *rwl)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_wrlock_if (RWL *rwl)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_wrlock_until (RWL *rwl, RTIME time)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_wrlock_timed (RWL *rwl, RTIME delay)
  More...
 
RTAI_SYSCALL_MODE int rt_rwl_unlock (RWL *rwl)
  More...
 
RTAI_SYSCALL_MODE int rt_spl_init (SPL *spl)
  More...
 
RTAI_SYSCALL_MODE int rt_spl_delete (SPL *spl)
  More...
 
RTAI_SYSCALL_MODE int rt_spl_lock (SPL *spl)
  More...
 
RTAI_SYSCALL_MODE int rt_spl_lock_if (SPL *spl)
  More...
 
RTAI_SYSCALL_MODE int rt_spl_lock_timed (SPL *spl, unsigned long ns)
  More...
 
RTAI_SYSCALL_MODE int rt_spl_unlock (SPL *spl)
  More...
 
RTAI_SYSCALL_MODE SEM * _rt_typed_named_sem_init (unsigned long sem_name, int value, int type, unsigned long *handle)
  More...
 
RTAI_SYSCALL_MODE int rt_named_sem_delete (SEM *sem)
  More...
 
RTAI_SYSCALL_MODE RWL * _rt_named_rwl_init (unsigned long rwl_name)
  More...
 
RTAI_SYSCALL_MODE int rt_named_rwl_delete (RWL *rwl)
  More...
 
RTAI_SYSCALL_MODE SPL * _rt_named_spl_init (unsigned long spl_name)
  More...
 
RTAI_SYSCALL_MODE int rt_named_spl_delete (SPL *spl)
  More...
 

Detailed Description

Semaphore functions.

Author
Paolo Mantegazza
Note
Copyright (C) 1999-2010 Paolo Mantegazza mante.nosp@m.gazz.nosp@m.a@aer.nosp@m.o.po.nosp@m.limi..nosp@m.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, see http://www.gnu.org/licenses/.