Ignore:
Timestamp:
Sep 20, 2017, 4:50:52 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
a2dbad10
Parents:
0895cba
Message:

Changed lib-side waitfor to use a mask type instead of a pointer and an int. The accepted index is now in the mask type, everything else points to it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/monitor

    r0895cba r6ae8c92  
    3333        (this.signal_stack){};
    3434        this.recursion = 0;
    35         this.acceptables = NULL;
    36         this.acceptable_count = 0;
    37         this.accepted_index = -1;
     35        this.mask.accepted = NULL;
     36        this.mask.clauses  = NULL;
     37        this.mask.size     = 0;
    3838}
    3939
     
    105105
    106106struct __acceptable_t {
    107         __monitor_group monitors;
     107        __monitor_group_t monitors;
    108108        bool is_dtor;
    109109};
    110110
    111 int __waitfor_internal( unsigned short count, __acceptable_t * acceptables, int duration );
     111void __waitfor_internal( const __waitfor_mask_t & mask, int duration );
    112112
    113113// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.