Changes in src/libcfa/concurrency/monitor [549c006:d67cdb7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor
r549c006 rd67cdb7 29 29 static inline void ?{}(monitor_desc & this) { 30 30 (this.lock){}; 31 this.owner = NULL; 31 32 (this.entry_queue){}; 32 33 (this.signal_stack){}; 33 this.owner = NULL; 34 this.recursion = 0; 34 this.recursion = 0; 35 35 this.mask.accepted = NULL; 36 36 this.mask.clauses = NULL; 37 37 this.mask.size = 0; 38 this.dtor_node = NULL;39 38 } 40 41 // static inline int ?<?(monitor_desc* lhs, monitor_desc* rhs) {42 // return ((intptr_t)lhs) < ((intptr_t)rhs);43 // }44 39 45 40 struct monitor_guard_t { … … 51 46 }; 52 47 48 static inline int ?<?(monitor_desc* lhs, monitor_desc* rhs) { 49 return ((intptr_t)lhs) < ((intptr_t)rhs); 50 } 51 53 52 void ?{}( monitor_guard_t & this, monitor_desc ** m, int count, void (*func)() ); 54 53 void ^?{}( 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 );66 54 67 55 //-----------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.