Changeset 6b224a52 for src/libcfa/concurrency/monitor
- Timestamp:
- Aug 25, 2017, 12:11:53 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:
- bf7b9da7
- Parents:
- 135b431 (diff), f676b84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/monitor
r135b431 r6b224a52 22 22 #include "stdlib" 23 23 24 static inline void ?{}(monitor_desc *this) {25 ( &this->lock){};26 this ->owner = NULL;27 ( &this->entry_queue){};28 ( &this->signal_stack){};29 this ->recursion = 0;30 this ->acceptables = NULL;31 this ->acceptable_count = 0;32 this ->accepted_index = -1;24 static inline void ?{}(monitor_desc & this) { 25 (this.lock){}; 26 this.owner = NULL; 27 (this.entry_queue){}; 28 (this.signal_stack){}; 29 this.recursion = 0; 30 this.acceptables = NULL; 31 this.acceptable_count = 0; 32 this.accepted_index = -1; 33 33 } 34 34 … … 45 45 } 46 46 47 void ?{}( monitor_guard_t * this, monitor_desc ** m, int count, void (*func)());48 void ^?{}( monitor_guard_t *this );47 void ?{}( monitor_guard_t & this, monitor_desc ** m, int count ); 48 void ^?{}( monitor_guard_t & this ); 49 49 50 50 //----------------------------------------------------------------------------- … … 71 71 }; 72 72 73 void ?{}( __condition_blocked_queue_t *);73 void ?{}( __condition_blocked_queue_t & ); 74 74 void append( __condition_blocked_queue_t *, __condition_node_t * ); 75 75 __condition_node_t * pop_head( __condition_blocked_queue_t * ); … … 81 81 }; 82 82 83 static inline void ?{}( condition *this ) {84 this ->monitors = NULL;85 this ->monitor_count = 0;83 static inline void ?{}( condition & this ) { 84 this.monitors = NULL; 85 this.monitor_count = 0; 86 86 } 87 87 88 static inline void ^?{}( condition *this ) {89 free( this ->monitors );88 static inline void ^?{}( condition & this ) { 89 free( this.monitors ); 90 90 } 91 91
Note: See TracChangeset
for help on using the changeset viewer.