Changeset ade5272
- Timestamp:
- May 11, 2018, 12:10:12 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 52df81c
- Parents:
- 705e612
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/preemption.c
r705e612 rade5272 357 357 // Block sigalrms to control when they arrive 358 358 sigset_t mask; 359 sigfillset(&mask); 360 if ( pthread_sigmask( SIG_BLOCK, &mask, NULL ) == -1 ) { 361 abort( "internal error, pthread_sigmask" ); 362 } 363 359 364 sigemptyset( &mask ); 360 365 sigaddset( &mask, SIGALRM ); 361 362 if ( pthread_sigmask( SIG_BLOCK, &mask, NULL ) == -1 ) {363 abort( "internal error, pthread_sigmask" );364 }365 366 366 367 // Main loop
Note: See TracChangeset
for help on using the changeset viewer.