Xenomai API  2.6.5

Thread synchronization services. More...

Include dependency graph for synch.c:

Functions

void xnsynch_init (struct xnsynch *synch, xnflags_t flags, xnarch_atomic_t *fastlock)
 Initialize a synchronization object. More...
 
xnflags_t xnsynch_sleep_on (struct xnsynch *synch, xnticks_t timeout, xntmode_t timeout_mode)
 Sleep on an ownerless synchronization object. More...
 
struct xnthread * xnsynch_wakeup_one_sleeper (struct xnsynch *synch)
 Give the resource ownership to the next waiting thread. More...
 
struct xnpholder * xnsynch_wakeup_this_sleeper (struct xnsynch *synch, struct xnpholder *holder)
 Give the resource ownership to a given waiting thread. More...
 
xnflags_t xnsynch_acquire (struct xnsynch *synch, xnticks_t timeout, xntmode_t timeout_mode)
 Acquire the ownership of a synchronization object. More...
 
static void xnsynch_clear_boost (struct xnsynch *synch, struct xnthread *owner)
 Clear the priority boost. More...
 
void xnsynch_requeue_sleeper (struct xnthread *thread)
 Change a sleeper's priority. More...
 
struct xnthread * xnsynch_release (struct xnsynch *synch)
 Give the resource ownership to the next waiting thread. More...
 
struct xnthread * xnsynch_peek_pendq (struct xnsynch *synch)
 Access the thread leading a synch object wait queue. More...
 
int xnsynch_flush (struct xnsynch *synch, xnflags_t reason)
 Unblock all waiters pending on a resource. More...
 
void xnsynch_forget_sleeper (struct xnthread *thread)
 Abort a wait for a resource. More...
 
void xnsynch_release_all_ownerships (struct xnthread *thread)
 Release all ownerships. More...
 

Detailed Description

Thread synchronization services.

Author
Philippe Gerum

Copyright (C) 2001-2008 Philippe Gerum rpm@x.nosp@m.enom.nosp@m.ai.or.nosp@m.g.

Xenomai 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.

Xenomai 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 Xenomai; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.