Ignore:
Timestamp:
Mar 17, 2017, 11:34:15 AM (7 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/thread

    r9f1695b r17af7d1  
    3333};
    3434
    35 #define DECL_THREAD(X) thread_desc* get_thread(X* this) { return &this->t; } void main(X* this)
     35#define DECL_THREAD(X) thread_desc* get_thread(X* this) { return &this->__thrd; } void main(X* this)
    3636
    3737forall( dtype T | is_thread(T) )
    3838static inline coroutine_desc* get_coroutine(T* this) {
    39         return &get_thread(this)->c;
     39        return &get_thread(this)->cor;
    4040}
    4141
    4242static inline coroutine_desc* get_coroutine(thread_desc* this) {
    43         return &this->c;
     43        return &this->cor;
    4444}
    4545
Note: See TracChangeset for help on using the changeset viewer.