- Timestamp:
- Mar 19, 2025, 4:54:09 PM (6 months ago)
- Branches:
- master
- Children:
- 5329cba
- Parents:
- 42cd67b8 (diff), e1358c0 (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/select.cfa
r42cd67b8 rfd3be42 10 10 // Author : Colby Alexander Parsons 11 11 // Created On : Thu Apr 21 19:46:50 2023 12 // Last Modified By : 13 // Last Modified On : 14 // Update Count : 12 // Last Modified By : Kyoung Seo 13 // Last Modified On : Wed Mar 19 12:00:00 2025 14 // Update Count : 1 15 15 // 16 16 … … 51 51 bool on_selected( select_timeout_node & this, select_node & node ) { return true; } 52 52 53 // Gateway routine to wait on duration54 select_timeout_node timeout( Duration duration ) {55 select_timeout_node node{ duration, timeout_handler_select_cast };56 return node;57 }58 select_timeout_node sleep( Duration duration ) { return timeout( duration ); }59 -
libcfa/src/concurrency/select.hfa
r42cd67b8 rfd3be42 10 10 // Author : Colby Alexander Parsons 11 11 // Created On : Thu Jan 21 19:46:50 2023 12 // Last Modified By : 13 // Last Modified On : 14 // Update Count : 12 // Last Modified By : Kyoung Seo 13 // Last Modified On : Wed Mar 19 12:00:00 2025 14 // Update Count : 1 15 15 // 16 16 … … 214 214 select_timeout_node __CFA_select_get_type( select_timeout_node this ); 215 215 216 // Gateway routines to waituntil on duration 217 select_timeout_node timeout( Duration duration ); 218 select_timeout_node sleep( Duration duration ); 219 216 // Timer macro for waituntil 217 #define _timeout(D) (select_timeout_node) { D, timeout_handler_select_cast }
Note:
See TracChangeset
for help on using the changeset viewer.