comparison packages/kernel/current/include/kapi.h @ 210:d2c90368aeef

Merge from eCos master repository on 2002-05-23-21:39:14-BST
author jlarmour
date Thu, 23 May 2002 22:59:51 +0000
parents e0c0827131d1
children 9091c290be62
comparison
equal deleted inserted replaced
209:19edcb2e78cc 210:d2c90368aeef
35 // 35 //
36 // This exception does not invalidate any other reasons why a work based on 36 // This exception does not invalidate any other reasons why a work based on
37 // this file might be covered by the GNU General Public License. 37 // this file might be covered by the GNU General Public License.
38 // 38 //
39 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. 39 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
40 // at http://sources.redhat.com/ecos/ecos-license 40 // at http://sources.redhat.com/ecos/ecos-license/
41 // ------------------------------------------- 41 // -------------------------------------------
42 //####ECOSGPLCOPYRIGHTEND#### 42 //####ECOSGPLCOPYRIGHTEND####
43 //========================================================================== 43 //==========================================================================
44 //#####DESCRIPTIONBEGIN#### 44 //#####DESCRIPTIONBEGIN####
45 // 45 //
220 void cyg_thread_set_data(cyg_ucount32 index, CYG_ADDRWORD data); 220 void cyg_thread_set_data(cyg_ucount32 index, CYG_ADDRWORD data);
221 221
222 #endif 222 #endif
223 223
224 /*---------------------------------------------------------------------------*/ 224 /*---------------------------------------------------------------------------*/
225 /* Thread destructors */
226
227 #ifdef CYGPKG_KERNEL_THREADS_DESTRUCTORS
228
229 typedef void (*cyg_thread_destructor_fn)(cyg_addrword_t);
230
231 cyg_bool_t cyg_thread_add_destructor( cyg_thread_destructor_fn fn,
232 cyg_addrword_t data );
233 cyg_bool_t cyg_thread_rem_destructor( cyg_thread_destructor_fn fn,
234 cyg_addrword_t data );
235 #endif
236
237 /*---------------------------------------------------------------------------*/
225 /* Exception handling. */ 238 /* Exception handling. */
226 239
227 /* Replace current exception handler, this may apply to either the */ 240 /* Replace current exception handler, this may apply to either the */
228 /* current thread, or to a global exception handler. The exception */ 241 /* current thread, or to a global exception handler. The exception */
229 /* number may be ignored, or used to specify a particular handler. */ 242 /* number may be ignored, or used to specify a particular handler. */