Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/monitor

    r549c006 rd67cdb7  
    2929static inline void ?{}(monitor_desc & this) {
    3030        (this.lock){};
     31        this.owner = NULL;
    3132        (this.entry_queue){};
    3233        (this.signal_stack){};
    33         this.owner         = NULL;
    34         this.recursion     = 0;
     34        this.recursion = 0;
    3535        this.mask.accepted = NULL;
    3636        this.mask.clauses  = NULL;
    3737        this.mask.size     = 0;
    38         this.dtor_node     = NULL;
    3938}
    40 
    41 // static inline int ?<?(monitor_desc* lhs, monitor_desc* rhs) {
    42 //      return ((intptr_t)lhs) < ((intptr_t)rhs);
    43 // }
    4439
    4540struct monitor_guard_t {
     
    5146};
    5247
     48static inline int ?<?(monitor_desc* lhs, monitor_desc* rhs) {
     49        return ((intptr_t)lhs) < ((intptr_t)rhs);
     50}
     51
    5352void ?{}( monitor_guard_t & this, monitor_desc ** m, int count, void (*func)() );
    5453void ^?{}( monitor_guard_t & this );
    55 
    56 
    57 struct monitor_dtor_guard_t {
    58         monitor_desc * m;
    59         monitor_desc ** prev_mntrs;
    60         unsigned short  prev_count;
    61         fptr_t          prev_func;
    62 };
    63 
    64 void ?{}( monitor_dtor_guard_t & this, monitor_desc ** m, void (*func)() );
    65 void ^?{}( monitor_dtor_guard_t & this );
    6654
    6755//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.