Changeset 30763fd for libcfa/src/concurrency
- Timestamp:
- Nov 26, 2019, 3:20:30 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d4f1521
- Parents:
- 7768b8d (diff), 58e280f4 (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
r7768b8d r30763fd 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 … … 841 841 if(thrd) { 842 842 int len = snprintf( abort_text, abort_text_size, "Error occurred while executing thread %.256s (%p)", thrd->self_cor.name, thrd ); 843 __cfaabi_ dbg_bits_write(abort_text, len );843 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 844 844 845 845 if ( &thrd->self_cor != thrd->curr_cor ) { 846 846 len = snprintf( abort_text, abort_text_size, " in coroutine %.256s (%p).\n", thrd->curr_cor->name, thrd->curr_cor ); 847 __cfaabi_ dbg_bits_write(abort_text, len );847 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 848 848 } 849 849 else { 850 __cfaabi_ dbg_bits_write(".\n", 2 );850 __cfaabi_bits_write( STDERR_FILENO, ".\n", 2 ); 851 851 } 852 852 } 853 853 else { 854 854 int len = snprintf( abort_text, abort_text_size, "Error occurred outside of any thread.\n" ); 855 __cfaabi_ dbg_bits_write(abort_text, len );855 __cfaabi_bits_write( STDERR_FILENO, abort_text, len ); 856 856 } 857 857 } … … 864 864 865 865 extern "C" { 866 void __cfaabi_ dbg_bits_acquire() {866 void __cfaabi_bits_acquire() { 867 867 lock( kernel_debug_lock __cfaabi_dbg_ctx2 ); 868 868 } 869 869 870 void __cfaabi_ dbg_bits_release() {870 void __cfaabi_bits_release() { 871 871 unlock( kernel_debug_lock ); 872 872 }
Note: See TracChangeset
for help on using the changeset viewer.