Xenomai API  2.5.6.1
ksrc/nucleus/synch.c File Reference

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

Detailed Description

Thread synchronization services.

Author:
Philippe Gerum

Copyright (C) 2001-2008 Philippe Gerum <[email protected]>.

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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines