rtai-core/sched/xenomai/synch.c File Reference


Detailed Description

Thread synchronization services.

Author:
Philippe Gerum
Copyright (C) 2001,2002,2003 Philippe Gerum <rpm@xenomai.org>.

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.

As a special exception, the RTAI project gives permission for additional uses of the text contained in its release of Xenomai.

The exception is that, if you link the Xenomai libraries with other files to produce an executable, this does not by itself cause the resulting executable to be covered by the GNU General Public License. Your use of that executable is in no way restricted on account of linking the Xenomai libraries code into it.

This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License.

This exception applies only to the code released by the RTAI project under the name Xenomai. If you copy code from other RTAI project releases into a copy of Xenomai, as the General Public License permits, the exception does not apply to the code that you add in this way. To avoid misleading anyone as to the status of such modified files, you must delete this exception notice from them.

If you write modifications of your own for Xenomai, it is your choice whether to permit this exception to apply to your modifications. If you do not wish that, delete this exception notice.

Include dependency graph for synch.c:

Include dependency graph

Functions

void xnsynch_init (xnsynch_t *synch, xnflags_t flags)
 Initialize a synchronization object.

void xnsynch_sleep_on (xnsynch_t *synch, xnticks_t timeout, xnmutex_t *imutex)
 Sleep on a synchronization object.

void xnsynch_clear_boost (xnsynch_t *synch, xnthread_t *lastowner)
 Clear the priority boost - INTERNAL.

void xnsynch_renice_sleeper (xnthread_t *thread)
 Change a sleeper's priority - INTERNAL.

xnthread_t * xnsynch_wakeup_one_sleeper (xnsynch_t *synch)
 Give the resource ownership to the next waiting thread.

xnpholder_t * xnsynch_wakeup_this_sleeper (xnsynch_t *synch, xnpholder_t *holder)
 Give the resource ownership to a given waiting thread.

int xnsynch_flush (xnsynch_t *synch, xnflags_t reason)
 Unblock all waiters pending on a resource.

void xnsynch_forget_sleeper (xnthread_t *thread)
 Abort a wait for a resource - INTERNAL.

void xnsynch_release_all_ownerships (xnthread_t *thread)
 Release all ownerships - INTERNAL.


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