- Timestamp:
- Feb 28, 2017, 1:49:12 PM (8 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:
- 14f6bb39
- Parents:
- 31868da (diff), cc7f4b1 (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/tests/monitor.c
r31868da rfd061ed3 6 6 struct global_t { 7 7 int value; 8 monitorm;8 __monitor_t m; 9 9 }; 10 10 … … 16 16 17 17 void increment( /*mutex*/ global_t * this ) { 18 monitor_guard g = { &this->m }; 19 this->value += 1; 18 monitor_guard_t g1 = { &this->m }; 19 { 20 monitor_guard_t g2 = { &this->m }; 21 { 22 monitor_guard_t g3 = { &this->m }; 23 this->value += 1; 24 } 25 } 20 26 } 21 27
Note: See TracChangeset
for help on using the changeset viewer.