Ignore:
Timestamp:
Nov 26, 2019, 3:20:30 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
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.
Message:

Merge branch 'master' into relaxed_ready

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.cfa

    r7768b8d r30763fd  
    1010// Created On       : Tue Jan 17 12:27:26 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jun 20 17:21:23 2019
    13 // Update Count     : 25
     12// Last Modified On : Thu Nov 21 16:46:59 2019
     13// Update Count     : 27
    1414//
    1515
     
    841841        if(thrd) {
    842842                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 );
    844844
    845845                if ( &thrd->self_cor != thrd->curr_cor ) {
    846846                        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 );
    848848                }
    849849                else {
    850                         __cfaabi_dbg_bits_write( ".\n", 2 );
     850                        __cfaabi_bits_write( STDERR_FILENO, ".\n", 2 );
    851851                }
    852852        }
    853853        else {
    854854                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 );
    856856        }
    857857}
     
    864864
    865865extern "C" {
    866         void __cfaabi_dbg_bits_acquire() {
     866        void __cfaabi_bits_acquire() {
    867867                lock( kernel_debug_lock __cfaabi_dbg_ctx2 );
    868868        }
    869869
    870         void __cfaabi_dbg_bits_release() {
     870        void __cfaabi_bits_release() {
    871871                unlock( kernel_debug_lock );
    872872        }
Note: See TracChangeset for help on using the changeset viewer.