Changeset d67cdb7 for src/libcfa/concurrency/monitor
- Timestamp:
- Sep 26, 2017, 11:27:38 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 5dc26f5
- Parents:
- 201aeb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor
r201aeb9 rd67cdb7 22 22 #include "stdlib" 23 23 24 trait is_monitor(dtype T) { 25 monitor_desc * get_monitor( T & ); 26 void ^?{}( T & mutex ); 27 }; 28 24 29 static inline void ?{}(monitor_desc & this) { 25 30 (this.lock){}; … … 28 33 (this.signal_stack){}; 29 34 this.recursion = 0; 30 this. acceptables= NULL;31 this. acceptable_count = 0;32 this. accepted_index = -1;35 this.mask.accepted = NULL; 36 this.mask.clauses = NULL; 37 this.mask.size = 0; 33 38 } 34 39 … … 100 105 101 106 struct __acceptable_t { 102 fptr_t func; 103 unsigned short count; 104 monitor_desc ** monitors; 107 __monitor_group_t; 105 108 bool is_dtor; 106 109 }; 107 110 108 int __accept_internal( unsigned short count, __acceptable_t * acceptables);111 void __waitfor_internal( const __waitfor_mask_t & mask, int duration ); 109 112 110 113 // Local Variables: //
Note: See TracChangeset
for help on using the changeset viewer.