Changeset 5d3d281 for libcfa/src/concurrency/thread.hfa
- Timestamp:
- Dec 11, 2024, 7:32:08 PM (7 days ago)
- Branches:
- master
- Children:
- 36dfdac
- Parents:
- e797179
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.hfa
re797179 r5d3d281 28 28 // thread trait 29 29 forall( T & ) 30 trait is_basic_thread { 31 void main(T& this); 32 thread$ * get_thread(T& this); 33 }; 34 forall( T & | is_basic_thread(T) ) 30 35 trait is_thread { 31 36 void ^?{}(T& mutex this); 32 void main(T& this);33 thread$ * get_thread(T& this);34 37 }; 35 38 … … 47 50 48 51 // Inline getters for threads/coroutines/monitors 49 forall( T & | is_ thread(T) )52 forall( T & | is_basic_thread(T) ) 50 53 static inline coroutine$ * get_coroutine(T & this) __attribute__((const)) { return &get_thread(this)->self_cor; } 51 54 52 forall( T & | is_ thread(T) )55 forall( T & | is_basic_thread(T) ) 53 56 static inline monitor$ * get_monitor (T & this) __attribute__((const)) { return &get_thread(this)->self_mon; } 54 57 … … 60 63 extern struct cluster * mainCluster; 61 64 62 forall( T & | is_ thread(T) )65 forall( T & | is_basic_thread(T) ) 63 66 void __thrd_start( T & this, void (*)(T &) ); 64 67
Note: See TracChangeset
for help on using the changeset viewer.