Changes in src/libcfa/concurrency/thread [83a071f9:d67cdb7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/thread
r83a071f9 rd67cdb7 1 // -*- Mode: CFA -*-2 1 // 3 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo … … 10 9 // Author : Thierry Delisle 11 10 // Created On : Tue Jan 17 12:27:26 2017 12 // Last Modified By : Thierry Delisle13 // Last Modified On : --14 // Update Count : 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 22 09:59:40 2017 13 // Update Count : 3 15 14 // 16 15 17 #ifndef THREADS_H 18 #define THREADS_H 16 #pragma once 19 17 20 #include "assert"18 #include <assert.h> 21 19 #include "invoke.h" 22 20 … … 38 36 forall( dtype T | is_thread(T) ) 39 37 static inline coroutine_desc* get_coroutine(T & this) { 40 return &get_thread(this)-> cor;38 return &get_thread(this)->self_cor; 41 39 } 42 40 43 41 forall( dtype T | is_thread(T) ) 44 42 static inline monitor_desc* get_monitor(T & this) { 45 return &get_thread(this)-> mon;43 return &get_thread(this)->self_mon; 46 44 } 47 45 48 46 static inline coroutine_desc* get_coroutine(thread_desc * this) { 49 return &this-> cor;47 return &this->self_cor; 50 48 } 51 49 52 50 static inline monitor_desc* get_monitor(thread_desc * this) { 53 return &this-> mon;51 return &this->self_mon; 54 52 } 55 53 56 extern volatile thread_local thread_desc *this_thread;54 extern thread_local thread_desc * volatile this_thread; 57 55 58 56 forall( dtype T | is_thread(T) ) … … 84 82 void yield( unsigned times ); 85 83 86 #endif //THREADS_H87 88 84 // Local Variables: // 89 85 // mode: c //
Note:
See TracChangeset
for help on using the changeset viewer.