Changes in src/tests/monitor.c [cc7f4b1:2781e65]
- File:
-
- 1 edited
-
src/tests/monitor.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/monitor.c
rcc7f4b1 r2781e65 16 16 17 17 void increment( /*mutex*/ global_t * this ) { 18 monitor_guard_t g1 = { &this->m }; 18 __monitor_t * mon = &this->m; 19 monitor_guard_t g1 = { &mon }; 19 20 { 20 monitor_guard_t g2 = { & this->m};21 monitor_guard_t g2 = { &mon }; 21 22 { 22 monitor_guard_t g3 = { & this->m};23 monitor_guard_t g3 = { &mon }; 23 24 this->value += 1; 24 25 }
Note:
See TracChangeset
for help on using the changeset viewer.