Changes in src/libcfa/concurrency/monitor [aaa4f93:9f5ecf5]
- File:
-
- 1 edited
-
src/libcfa/concurrency/monitor (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor
raaa4f93 r9f5ecf5 22 22 #include "stdlib" 23 23 24 trait is_monitor(dtype T) {25 monitor_desc * get_monitor( T & );26 void ^?{}( T & mutex );27 };28 29 24 static inline void ?{}(monitor_desc & this) { 30 25 (this.lock){}; … … 33 28 (this.signal_stack){}; 34 29 this.recursion = 0; 35 this. mask.accepted= NULL;36 this. mask.clauses = NULL;37 this. mask.size = 0;30 this.acceptables = NULL; 31 this.acceptable_count = 0; 32 this.accepted_index = -1; 38 33 } 39 34 … … 105 100 106 101 struct __acceptable_t { 107 __monitor_group_t; 102 fptr_t func; 103 unsigned short count; 104 monitor_desc ** monitors; 108 105 bool is_dtor; 109 106 }; 110 107 111 void __waitfor_internal( const __waitfor_mask_t & mask, int duration);108 int __accept_internal( unsigned short count, __acceptable_t * acceptables ); 112 109 113 110 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.