Changeset 695e00d for src/libcfa
- Timestamp:
- Sep 19, 2017, 2:14:39 PM (8 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, resolv-new, with_gc
- Children:
- 8f98b78
- Parents:
- e149f77 (diff), e06be49 (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. - Location:
- src/libcfa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine.c
re149f77 r695e00d 74 74 } 75 75 76 void ^?{}(coStack_t & this) {77 if ( ! this.userStack ) {76 void ^?{}(coStack_t & this) { 77 if ( ! this.userStack && this.storage ) { 78 78 LIB_DEBUG_DO( 79 79 if ( mprotect( this.storage, pageSize, PROT_READ | PROT_WRITE ) == -1 ) { … … 122 122 //TEMP HACK do this on proper kernel startup 123 123 if(pageSize == 0ul) pageSize = sysconf( _SC_PAGESIZE ); 124 125 LIB_DEBUG_PRINT_SAFE("FRED"); 124 126 125 127 size_t cxtSize = libCeiling( sizeof(machine_context_t), 8 ); // minimum alignment -
src/libcfa/concurrency/preemption.c
re149f77 r695e00d 243 243 244 244 // Setup proper signal handlers 245 __kernel_sigaction( SIGUSR1, sigHandler_ctxSwitch, SA_SIGINFO ); // CtxSwitch handler245 __kernel_sigaction( SIGUSR1, sigHandler_ctxSwitch, SA_SIGINFO | SA_RESTART ); // CtxSwitch handler 246 246 // __kernel_sigaction( SIGSEGV, sigHandler_segv , SA_SIGINFO ); // Failure handler 247 247 // __kernel_sigaction( SIGBUS , sigHandler_segv , SA_SIGINFO ); // Failure handler -
src/libcfa/iostream.c
re149f77 r695e00d 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Sep 11 09:21:24201713 // Update Count : 42 012 // Last Modified On : Sun Sep 17 23:24:25 2017 13 // Update Count : 422 14 14 // 15 15 … … 34 34 forall( dtype ostype | ostream( ostype ) ) 35 35 ostype * ?|?( ostype * os, signed char c ) { 36 if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) ); 36 37 fmt( os, "%hhd", c ); 37 sepOff( os );38 38 return os; 39 39 } // ?|? … … 41 41 forall( dtype ostype | ostream( ostype ) ) 42 42 ostype * ?|?( ostype * os, unsigned char c ) { 43 if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) ); 43 44 fmt( os, "%hhu", c ); 44 sepOff( os );45 45 return os; 46 46 } // ?|?
Note:
See TracChangeset
for help on using the changeset viewer.