Changeset 2a301ff for libcfa/src/concurrency/invoke.h
- Timestamp:
- Aug 31, 2023, 11:31:15 PM (2 years ago)
- Branches:
- master
- Children:
- 950c58e
- Parents:
- 92355883 (diff), 686912c (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. - File:
-
- 1 edited
-
libcfa/src/concurrency/invoke.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/invoke.h
r92355883 r2a301ff 10 10 // Created On : Tue Jan 17 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 14 13:39:31 202313 // Update Count : 5912 // Last Modified On : Wed Aug 30 21:27:51 2023 13 // Update Count : 60 14 14 // 15 15 16 16 // No not use #pragma once was this file is included twice in some places. It has its own guard system. 17 17 18 #include "bits/co ntainers.hfa"18 #include "bits/collections.hfa" 19 19 #include "bits/defs.hfa" 20 20 #include "bits/locks.hfa" … … 23 23 24 24 #ifdef __cforall 25 #include "co ntainers/list.hfa"25 #include "collections/list.hfa" 26 26 extern "C" { 27 27 #endif … … 74 74 }; 75 75 76 struct nonlocal_ehm { 77 // list of pending nonlocal exceptions 78 __queue_t(struct nonlocal_exception) ehm_buffer; 79 80 // lock to protect the buffer 81 struct __spinlock_t buffer_lock; 82 83 // enable/disabled flag 84 bool ehm_enabled; 85 }; 86 76 87 enum __Coroutine_State { Halted, Start, Primed, Blocked, Ready, Active, Cancelled, Halting }; 77 88 … … 98 109 struct _Unwind_Exception * cancellation; 99 110 111 // Non-local exception handling information 112 struct nonlocal_ehm ehm_state; 100 113 }; 101 114 // Wrapper for gdb … … 242 255 #ifdef __cforall 243 256 extern "Cforall" { 257 static inline bool exception_in_flight() { 258 return __get_stack( &active_thread()->self_cor )->exception_context.current_exception != 0p; 259 } 260 244 261 static inline thread$ * volatile & ?`next ( thread$ * this ) { 245 262 return this->user_link.next;
Note:
See TracChangeset
for help on using the changeset viewer.