- File:
-
- 1 edited
-
libcfa/src/concurrency/preemption.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/preemption.cfa
rc59a346 r185efe6 43 43 // FwdDeclarations : Signal handlers 44 44 static void sigHandler_ctxSwitch( __CFA_SIGPARMS__ ); 45 static void sigHandler_alarm ( __CFA_SIGPARMS__ );46 45 static void sigHandler_segv ( __CFA_SIGPARMS__ ); 47 46 static void sigHandler_ill ( __CFA_SIGPARMS__ ); … … 257 256 258 257 if ( pthread_sigmask( SIG_BLOCK, &mask, 0p ) == -1 ) { 259 abort( "internal error, pthread_sigmask" );258 abort( "internal error, pthread_sigmask" ); 260 259 } 261 260 } … … 304 303 // Setup proper signal handlers 305 304 __cfaabi_sigaction( SIGUSR1, sigHandler_ctxSwitch, SA_SIGINFO | SA_RESTART ); // __cfactx_switch handler 306 __cfaabi_sigaction( SIGALRM, sigHandler_alarm , SA_SIGINFO | SA_RESTART ); // debug handler307 305 308 306 signal_block( SIGALRM ); … … 396 394 397 395 force_yield( __ALARM_PREEMPTION ); // Do the actual __cfactx_switch 398 }399 400 static void sigHandler_alarm( __CFA_SIGPARMS__ ) {401 abort("SIGALRM should never reach the signal handler");402 396 } 403 397
Note:
See TracChangeset
for help on using the changeset viewer.