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