Changeset f1397d14 for libcfa/src/concurrency
- Timestamp:
- Nov 22, 2019, 2:40:46 PM (6 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:
- 9aa1317
- Parents:
- c701332a (diff), 2909b515 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
rc701332a rf1397d14 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 … … 824 824 if(thrd) { 825 825 int len = snprintf( abort_text, abort_text_size, "Error occurred while executing thread %.256s (%p)", thrd->self_cor.name, thrd ); 826 __cfaabi_ dbg_bits_write(abort_text, len );826 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 827 827 828 828 if ( &thrd->self_cor != thrd->curr_cor ) { 829 829 len = snprintf( abort_text, abort_text_size, " in coroutine %.256s (%p).\n", thrd->curr_cor->name, thrd->curr_cor ); 830 __cfaabi_ dbg_bits_write(abort_text, len );830 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 831 831 } 832 832 else { 833 __cfaabi_ dbg_bits_write(".\n", 2 );833 __cfaabi_bits_write( STDERR_FILENO, ".\n", 2 ); 834 834 } 835 835 } 836 836 else { 837 837 int len = snprintf( abort_text, abort_text_size, "Error occurred outside of any thread.\n" ); 838 __cfaabi_ dbg_bits_write(abort_text, len );838 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 839 839 } 840 840 } … … 847 847 848 848 extern "C" { 849 void __cfaabi_ dbg_bits_acquire() {849 void __cfaabi_bits_acquire() { 850 850 lock( kernel_debug_lock __cfaabi_dbg_ctx2 ); 851 851 } 852 852 853 void __cfaabi_ dbg_bits_release() {853 void __cfaabi_bits_release() { 854 854 unlock( kernel_debug_lock ); 855 855 }
Note:
See TracChangeset
for help on using the changeset viewer.