Changeset e1358c0 for libcfa


Ignore:
Timestamp:
Mar 19, 2025, 1:34:12 PM (11 days ago)
Author:
kyoung <lseo@…>
Branches:
master
Children:
fd3be42
Parents:
048dde4
git-author:
kyoung <lseo@…> (03/19/25 12:01:52)
git-committer:
kyoung <lseo@…> (03/19/25 13:34:12)
Message:

create waituntil timeout node as literal via macro as a workaround for upcoming change in dlist copy ctor/raii changes

Location:
libcfa/src/concurrency
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified libcfa/src/concurrency/select.cfa

    r048dde4 re1358c0  
    1010// Author           : Colby Alexander Parsons
    1111// 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
    1515//
    1616
     
    5151bool on_selected( select_timeout_node & this, select_node & node ) { return true; }
    5252
    53 // Gateway routine to wait on duration
    54 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 
  • TabularUnified libcfa/src/concurrency/select.hfa

    r048dde4 re1358c0  
    1010// Author           : Colby Alexander Parsons
    1111// 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
    1515//
    1616
     
    214214select_timeout_node __CFA_select_get_type( select_timeout_node this );
    215215
    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.