Changeset 1c40091 for libcfa/src/concurrency
- Timestamp:
- Nov 21, 2019, 9:38:49 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2909b515
- Parents:
- e11957e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
re11957e r1c40091 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 20 17:21:23201913 // Update Count : 2 512 // Last Modified On : Thu Nov 21 16:46:59 2019 13 // Update Count : 27 14 14 // 15 15 … … 819 819 if(thrd) { 820 820 int len = snprintf( abort_text, abort_text_size, "Error occurred while executing thread %.256s (%p)", thrd->self_cor.name, thrd ); 821 __cfaabi_ dbg_bits_write(abort_text, len );821 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 822 822 823 823 if ( &thrd->self_cor != thrd->curr_cor ) { 824 824 len = snprintf( abort_text, abort_text_size, " in coroutine %.256s (%p).\n", thrd->curr_cor->name, thrd->curr_cor ); 825 __cfaabi_ dbg_bits_write(abort_text, len );825 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 826 826 } 827 827 else { 828 __cfaabi_ dbg_bits_write(".\n", 2 );828 __cfaabi_bits_write( STDERR_FILENO, ".\n", 2 ); 829 829 } 830 830 } 831 831 else { 832 832 int len = snprintf( abort_text, abort_text_size, "Error occurred outside of any thread.\n" ); 833 __cfaabi_ dbg_bits_write(abort_text, len );833 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 834 834 } 835 835 } … … 842 842 843 843 extern "C" { 844 void __cfaabi_ dbg_bits_acquire() {844 void __cfaabi_bits_acquire() { 845 845 lock( kernel_debug_lock __cfaabi_dbg_ctx2 ); 846 846 } 847 847 848 void __cfaabi_ dbg_bits_release() {848 void __cfaabi_bits_release() { 849 849 unlock( kernel_debug_lock ); 850 850 }
Note: See TracChangeset
for help on using the changeset viewer.