Ignore:
Timestamp:
Nov 21, 2019, 9:38:49 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

rename cfaabi_dbg_bits_* to cfaabi_bits_*, add fd parameter to cfaabi_bits_* routines

File:
1 edited

Legend:

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

    re11957e r1c40091  
    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
     
    819819        if(thrd) {
    820820                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 );
    822822
    823823                if ( &thrd->self_cor != thrd->curr_cor ) {
    824824                        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 );
    826826                }
    827827                else {
    828                         __cfaabi_dbg_bits_write( ".\n", 2 );
     828                        __cfaabi_bits_write( STDERR_FILENO, ".\n", 2 );
    829829                }
    830830        }
    831831        else {
    832832                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 );
    834834        }
    835835}
     
    842842
    843843extern "C" {
    844         void __cfaabi_dbg_bits_acquire() {
     844        void __cfaabi_bits_acquire() {
    845845                lock( kernel_debug_lock __cfaabi_dbg_ctx2 );
    846846        }
    847847
    848         void __cfaabi_dbg_bits_release() {
     848        void __cfaabi_bits_release() {
    849849                unlock( kernel_debug_lock );
    850850        }
Note: See TracChangeset for help on using the changeset viewer.