diff 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
line wrap: on
line diff
--- a/packages/kernel/current/include/kapi.h
+++ b/packages/kernel/current/include/kapi.h
@@ -37,7 +37,7 @@
 // this file might be covered by the GNU General Public License.
 //
 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
-// at http://sources.redhat.com/ecos/ecos-license
+// at http://sources.redhat.com/ecos/ecos-license/
 // -------------------------------------------
 //####ECOSGPLCOPYRIGHTEND####
 //==========================================================================
@@ -222,6 +222,19 @@ void cyg_thread_set_data(cyg_ucount32 in
 #endif
     
 /*---------------------------------------------------------------------------*/
+/* Thread destructors                                                        */
+
+#ifdef CYGPKG_KERNEL_THREADS_DESTRUCTORS
+
+typedef void (*cyg_thread_destructor_fn)(cyg_addrword_t);
+
+cyg_bool_t cyg_thread_add_destructor( cyg_thread_destructor_fn fn,
+                                      cyg_addrword_t data );
+cyg_bool_t cyg_thread_rem_destructor( cyg_thread_destructor_fn fn,
+                                      cyg_addrword_t data );
+#endif
+    
+/*---------------------------------------------------------------------------*/
 /* Exception handling.                                                       */
 
 /* Replace current exception handler, this may apply to either the           */