Changeset a6e0e4c for libcfa/src/concurrency
- Timestamp:
- Dec 11, 2020, 3:44:29 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 361bf01, 6ce9a4f2
- Parents:
- b3a0df6 (diff), 4422579 (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:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.hfa
rb3a0df6 ra6e0e4c 144 144 145 145 if( unlikely(dst->context.SP == 0p) ) { 146 active_thread()->curr_cor = dst;147 146 __stack_prepare(&dst->stack, 65000); 148 147 __cfactx_start(main, dst, cor, __cfactx_invoke_coroutine); 149 active_thread()->curr_cor = src;150 148 } 151 149 -
libcfa/src/concurrency/io/setup.cfa
rb3a0df6 ra6e0e4c 17 17 #define _GNU_SOURCE /* See feature_test_macros(7) */ 18 18 19 #if defined(__CFA_DEBUG__) 20 // #define __CFA_DEBUG_PRINT_IO__ 21 // #define __CFA_DEBUG_PRINT_IO_CORE__ 22 #endif 23 19 24 #include "io/types.hfa" 20 25 #include "kernel.hfa" … … 111 116 112 117 void __kernel_io_startup(void) { 113 __cfa abi_dbg_print_safe("Kernel : Creating EPOLL instance\n" );118 __cfadbg_print_safe(io_core, "Kernel : Creating EPOLL instance\n" ); 114 119 115 120 iopoll.epollfd = epoll_create1(0); … … 118 123 } 119 124 120 __cfa abi_dbg_print_safe("Kernel : Starting io poller thread\n" );125 __cfadbg_print_safe(io_core, "Kernel : Starting io poller thread\n" ); 121 126 122 127 iopoll.run = true; … … 141 146 // Io polling is now fully stopped 142 147 143 __cfa abi_dbg_print_safe("Kernel : IO poller stopped\n" );148 __cfadbg_print_safe(io_core, "Kernel : IO poller stopped\n" ); 144 149 } 145 150 … … 149 154 id.id = doregister(&id); 150 155 __cfaabi_tls.this_proc_id = &id; 151 __cfa abi_dbg_print_safe("Kernel : IO poller thread starting\n" );156 __cfadbg_print_safe(io_core, "Kernel : IO poller thread starting\n" ); 152 157 153 158 // Block signals to control when they arrive … … 184 189 } 185 190 186 __cfa abi_dbg_print_safe("Kernel : IO poller thread stopping\n" );191 __cfadbg_print_safe(io_core, "Kernel : IO poller thread stopping\n" ); 187 192 unregister(&id); 188 193 return 0p;
Note:
See TracChangeset
for help on using the changeset viewer.