Changeset 17af7d1 for src/tests


Ignore:
Timestamp:
Mar 17, 2017, 11:34:15 AM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
b32ada31
Parents:
9f1695b
Message:

Some clean-up of runtime code

Location:
src/tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/tests/coroutine.c

    r9f1695b r17af7d1  
    44struct Fibonacci {
    55      int fn; // used for communication
    6       coroutine_desc c;
     6      coroutine_desc __cor;
    77};
    88
     
    1212
    1313coroutine_desc* get_coroutine(Fibonacci* this) {
    14       return &this->c;
     14      return &this->__cor;
    1515}
    1616
     
    1818#ifdef MORE_DEBUG
    1919      sout | "Starting main of coroutine " | this | endl;
    20       sout | "Started from " | this->c.last | endl;
     20      sout | "Started from " | this->__cor.last | endl;
    2121#endif
    2222      int fn1, fn2;             // retained between resumes
  • TabularUnified src/tests/monitor.c

    r9f1695b r17af7d1  
    3131}
    3232
    33 struct MyThread { thread_desc t; };
     33struct MyThread { thread_desc __thrd; };
    3434
    3535DECL_THREAD(MyThread);
  • TabularUnified src/tests/multi-monitor.c

    r9f1695b r17af7d1  
    2121
    2222struct MyThread {
    23         thread_desc t;
     23        thread_desc __thrd;
    2424        int target;
    2525};
  • TabularUnified src/tests/thread.c

    r9f1695b r17af7d1  
    44#include <thread>
    55
    6 struct First { thread_desc t; signal_once* lock; };
    7 struct Second { thread_desc t; signal_once* lock; };
     6struct First { thread_desc __thrd; signal_once* lock; };
     7struct Second { thread_desc __thrd; signal_once* lock; };
    88
    99DECL_THREAD(First);
Note: See TracChangeset for help on using the changeset viewer.