Changeset 95dab9e for libcfa/src/concurrency/preemption.cfa
- Timestamp:
- Sep 21, 2022, 11:56:16 AM (22 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 9cd5bd2
- Parents:
- 7f6a7c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/preemption.cfa
r7f6a7c9 r95dab9e 406 406 sigset_t oldset; 407 407 int ret; 408 ret = real_pthread_sigmask(0, ( const sigset_t * ) 0p, &oldset); // workaround trac#208: cast should be unnecessary408 ret = __cfaabi_pthread_sigmask(0, ( const sigset_t * ) 0p, &oldset); // workaround trac#208: cast should be unnecessary 409 409 if(ret != 0) { abort("ERROR sigprocmask returned %d", ret); } 410 410 … … 439 439 sigaddset( &mask, sig ); 440 440 441 if ( real_pthread_sigmask( SIG_UNBLOCK, &mask, 0p ) == -1 ) {441 if ( __cfaabi_pthread_sigmask( SIG_UNBLOCK, &mask, 0p ) == -1 ) { 442 442 abort( "internal error, pthread_sigmask" ); 443 443 } … … 450 450 sigaddset( &mask, sig ); 451 451 452 if ( real_pthread_sigmask( SIG_BLOCK, &mask, 0p ) == -1 ) {452 if ( __cfaabi_pthread_sigmask( SIG_BLOCK, &mask, 0p ) == -1 ) { 453 453 abort( "internal error, pthread_sigmask" ); 454 454 } … … 458 458 static void preempt( processor * this ) { 459 459 sigval_t value = { PREEMPT_NORMAL }; 460 real_pthread_sigqueue( this->kernel_thread, SIGUSR1, value );460 __cfaabi_pthread_sigqueue( this->kernel_thread, SIGUSR1, value ); 461 461 } 462 462 … … 469 469 sigset_t oldset; 470 470 int ret; 471 ret = real_pthread_sigmask(0, ( const sigset_t * ) 0p, &oldset); // workaround trac#208: cast should be unnecessary471 ret = __cfaabi_pthread_sigmask(0, ( const sigset_t * ) 0p, &oldset); // workaround trac#208: cast should be unnecessary 472 472 if(ret != 0) { abort("ERROR sigprocmask returned %d", ret); } 473 473 … … 488 488 sigset_t oldset; 489 489 int ret; 490 ret = real_pthread_sigmask(0, ( const sigset_t * ) 0p, &oldset); // workaround trac#208: cast should be unnecessary490 ret = __cfaabi_pthread_sigmask(0, ( const sigset_t * ) 0p, &oldset); // workaround trac#208: cast should be unnecessary 491 491 if(ret != 0) { abort("ERROR sigprocmask returned %d", ret); } 492 492 … … 559 559 sigval val; 560 560 val.sival_int = 0; 561 real_pthread_sigqueue( alarm_thread, SIGALRM, val );561 __cfaabi_pthread_sigqueue( alarm_thread, SIGALRM, val ); 562 562 563 563 // Wait for the preemption thread to finish … … 633 633 static_assert( sizeof( sigset_t ) == sizeof( cxt->uc_sigmask ), "Expected cxt->uc_sigmask to be of sigset_t" ); 634 634 #endif 635 if ( real_pthread_sigmask( SIG_SETMASK, (sigset_t *)&(cxt->uc_sigmask), 0p ) == -1 ) {635 if ( __cfaabi_pthread_sigmask( SIG_SETMASK, (sigset_t *)&(cxt->uc_sigmask), 0p ) == -1 ) { 636 636 abort( "internal error, sigprocmask" ); 637 637 } … … 661 661 sigset_t mask; 662 662 sigfillset(&mask); 663 if ( real_pthread_sigmask( SIG_BLOCK, &mask, 0p ) == -1 ) {663 if ( __cfaabi_pthread_sigmask( SIG_BLOCK, &mask, 0p ) == -1 ) { 664 664 abort( "internal error, pthread_sigmask" ); 665 665 }
Note: See TracChangeset
for help on using the changeset viewer.