Changeset bcda04c for src/tests/monitor.c
- Timestamp:
- Mar 23, 2017, 11:37:27 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, 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:
- bd4d011
- Parents:
- 578b637
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/monitor.c
r578b637 rbcda04c 4 4 #include <thread> 5 5 6 structglobal_t {6 monitor global_t { 7 7 int value; 8 monitor_desc m;9 8 }; 10 9 11 10 void ?{}(global_t * this) { 12 11 this->value = 0; 13 }14 15 monitor_desc * get_monitor( global_t * this ) {16 return &this->m;17 12 } 18 13 … … 45 40 46 41 int main(int argc, char* argv[]) { 47 assert( global. m.entry_queue.tail != NULL );42 assert( global.__mon.entry_queue.tail != NULL ); 48 43 processor p; 49 44 {
Note: See TracChangeset
for help on using the changeset viewer.