Mercurial > ecos
comparison packages/kernel/current/src/common/kapi.cxx @ 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 | a65a4055f146 |
comparison
equal
deleted
inserted
replaced
| 209:19edcb2e78cc | 210:d2c90368aeef |
|---|---|
| 32 // | 32 // |
| 33 // This exception does not invalidate any other reasons why a work based on | 33 // This exception does not invalidate any other reasons why a work based on |
| 34 // this file might be covered by the GNU General Public License. | 34 // this file might be covered by the GNU General Public License. |
| 35 // | 35 // |
| 36 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. | 36 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
| 37 // at http://sources.redhat.com/ecos/ecos-license | 37 // at http://sources.redhat.com/ecos/ecos-license/ |
| 38 // ------------------------------------------- | 38 // ------------------------------------------- |
| 39 //####ECOSGPLCOPYRIGHTEND#### | 39 //####ECOSGPLCOPYRIGHTEND#### |
| 40 //========================================================================== | 40 //========================================================================== |
| 41 //#####DESCRIPTIONBEGIN#### | 41 //#####DESCRIPTIONBEGIN#### |
| 42 // | 42 // |
| 341 Cyg_Thread::self()->set_data(index, data); | 341 Cyg_Thread::self()->set_data(index, data); |
| 342 } | 342 } |
| 343 #endif | 343 #endif |
| 344 | 344 |
| 345 /*---------------------------------------------------------------------------*/ | 345 /*---------------------------------------------------------------------------*/ |
| 346 /* Thread destructors */ | |
| 347 | |
| 348 #ifdef CYGPKG_KERNEL_THREADS_DESTRUCTORS | |
| 349 __externC cyg_bool_t | |
| 350 cyg_thread_add_destructor( cyg_thread_destructor_fn fn, | |
| 351 cyg_addrword_t data ) | |
| 352 { | |
| 353 return Cyg_Thread::self()->add_destructor( fn, data ); | |
| 354 } | |
| 355 | |
| 356 __externC cyg_bool_t | |
| 357 cyg_thread_rem_destructor( cyg_thread_destructor_fn fn, | |
| 358 cyg_addrword_t data ) | |
| 359 { | |
| 360 return Cyg_Thread::self()->rem_destructor( fn, data ); | |
| 361 } | |
| 362 #endif | |
| 363 | |
| 364 /*---------------------------------------------------------------------------*/ | |
| 346 /* Exception handling. */ | 365 /* Exception handling. */ |
| 347 | 366 |
| 348 #ifdef CYGPKG_KERNEL_EXCEPTIONS | 367 #ifdef CYGPKG_KERNEL_EXCEPTIONS |
| 349 externC void cyg_exception_set_handler( | 368 externC void cyg_exception_set_handler( |
| 350 cyg_code_t exception_number, | 369 cyg_code_t exception_number, |
