Changeset d971c8d for libcfa/src/concurrency/clib
- Timestamp:
- Mar 22, 2021, 2:24:00 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d27b6be
- Parents:
- 5c2b454
- Location:
- libcfa/src/concurrency/clib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.cfa
r5c2b454 rd971c8d 17 17 #include "locks.hfa" 18 18 #include "kernel.hfa" 19 #include "stats.hfa" 19 20 #include "thread.hfa" 20 21 #include "time.hfa" … … 139 140 cfathread_cluster_t cfathread_cluster_self(void) { 140 141 return active_cluster(); 142 } 143 144 int cfathread_cluster_print_stats( cfathread_cluster_t cl ) { 145 #if !defined(__CFA_NO_STATISTICS__) 146 print_stats_at_exit( *cl, CFA_STATS_READY_Q | CFA_STATS_IO ); 147 print_stats_now( *cl, CFA_STATS_READY_Q | CFA_STATS_IO ); 148 #endif 149 return 0; 141 150 } 142 151 -
libcfa/src/concurrency/clib/cfathread.h
r5c2b454 rd971c8d 29 29 int cfathread_cluster_create(cfathread_cluster_t * cluster); 30 30 cfathread_cluster_t cfathread_cluster_self(void); 31 int cfathread_cluster_print_stats(cfathread_cluster_t cluster); 31 32 int cfathread_cluster_add_worker(cfathread_cluster_t cluster, pthread_t* tid, void (*init_routine) (void *), void * arg); 32 33 int cfathread_cluster_pause (cfathread_cluster_t cluster);
Note: See TracChangeset
for help on using the changeset viewer.