1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >Task-Dependent Synchronization Functions</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
23 HREF="compat-uitron-microitron-api.html"><LINK
25 TITLE="Task Management Functions"
26 HREF="compat-uitron-task-management-functions.html"><LINK
28 TITLE=" Synchronization and Communication Functions"
29 HREF="compat-uitron-sync-and-comm-functions.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="compat-uitron-task-management-functions.html"
65 >Chapter 32. µITRON API</TD
71 HREF="compat-uitron-sync-and-comm-functions.html"
85 NAME="COMPAT-UITRON-TASK-DEPENDENT-SYNCH-FUNCTIONS">Task-Dependent Synchronization Functions</H1
87 >These functions are fully supported in this release: </P
95 CLASS="PROGRAMLISTING"
117 CLASS="PROGRAMLISTING"
139 CLASS="PROGRAMLISTING"
161 CLASS="PROGRAMLISTING"
176 CLASS="PROGRAMLISTING"
198 CLASS="PROGRAMLISTING"
220 CLASS="PROGRAMLISTING"
246 NAME="AEN13571">Error checking</H2
248 >The following conditions are only checked for, and only return
252 >CYGSEM_UITRON_BAD_PARAMS_RETURN_ERRORS</TT
254 is enabled (see the configuration option “Return Error Codes for Bad
261 >invalid tskid; less than 1 or greater than
264 >CYGNUM_UITRON_TASKS</TT
289 on the calling task returns E_OBJ</P
293 >dispatching is enabled in
307 >tmout must be positive, otherwise E_PAR</P
311 >return value pointer in
316 is a valid pointer, or E_PAR</P
320 >The following conditions are checked for, and can
321 return error codes, regardless of the setting of
324 >CYGSEM_UITRON_BAD_PARAMS_RETURN_ERRORS</TT
331 >When create and delete functions
341 are supported, all calls which use a valid task ID number check
342 that the task exists; if not, E_NOEXS is returned</P
350 : the task must not be dormant, else E_OBJ</P
358 : the task must be suspended, else E_OBJ</P
366 : return codes E_TMOUT, E_RLWAI and E_DLT
367 are returned depending on the reason for terminating the sleep</P
380 : the task must not be dormant, or E_OBJ is returned</P
390 SUMMARY="Footer navigation table"
401 HREF="compat-uitron-task-management-functions.html"
419 HREF="compat-uitron-sync-and-comm-functions.html"
429 >Task Management Functions</TD
435 HREF="compat-uitron-microitron-api.html"
443 >Synchronization and Communication Functions</TD