Changeset 34d62a7 for libcfa/src
- Timestamp:
- Mar 15, 2021, 2:22:39 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 9528767
- Parents:
- 79e23836 (diff), e5e5af9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- libcfa/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.cfa
r79e23836 r34d62a7 105 105 //-------------------- 106 106 // Thread 107 int cfathread_create( cfathread_t * handle, c fathread_attr_t * attr, void *(*main)( void * ), void * arg ) __attribute__((nonnull (1))) {107 int cfathread_create( cfathread_t * handle, const cfathread_attr_t * attr, void *(*main)( void * ), void * arg ) __attribute__((nonnull (1))) { 108 108 cluster * cl = attr ? attr->cl : active_cluster(); 109 109 cfathread_t thrd = alloc(); … … 120 120 } 121 121 return 0; 122 } 123 124 int cfathread_get_errno(void) { 125 return errno; 122 126 } 123 127 -
libcfa/src/concurrency/clib/cfathread.h
r79e23836 r34d62a7 30 30 typedef struct cluster * cfathread_cluster_t; 31 31 32 int cfathread_cluster_create(cfathread_cluster_t * cluster) __attribute__((nonnull(1)));32 int cfathread_cluster_create(cfathread_cluster_t * cluster); 33 33 cfathread_cluster_t cfathread_cluster_self(void); 34 34 int cfathread_cluster_add_worker(cfathread_cluster_t cluster, pthread_t* tid, void (*init_routine) (void *), void * arg); … … 43 43 44 44 int cfathread_attr_init(cfathread_attr_t * attr) __attribute__((nonnull (1))); 45 static inline int cfathread_attr_destroy(cfathread_attr_t * attr) __attribute__((nonnull (1))) { return 0; } 46 static inline int cfathread_attr_setbackground(cfathread_attr_t * attr, int background) __attribute__((nonnull (1))) { return 0; } 47 static inline int cfathread_attr_setcluster(cfathread_attr_t * attr, cfathread_cluster_t cl) __attribute__((nonnull (1))) { attr->cl = cl; return 0; } 45 static inline int cfathread_attr_destroy(cfathread_attr_t * attr) __attribute__((nonnull (1))); 46 static inline int cfathread_attr_destroy(cfathread_attr_t * attr) { return 0; } 47 static inline int cfathread_attr_setbackground(cfathread_attr_t * attr, int background) __attribute__((nonnull (1))); 48 static inline int cfathread_attr_setbackground(cfathread_attr_t * attr, int background) { return 0; } 49 static inline int cfathread_attr_setcluster(cfathread_attr_t * attr, cfathread_cluster_t cl) __attribute__((nonnull (1))); 50 static inline int cfathread_attr_setcluster(cfathread_attr_t * attr, cfathread_cluster_t cl) { attr->cl = cl; return 0; } 48 51 49 52 //-------------------- … … 52 55 typedef struct cfathread_object * cfathread_t; 53 56 54 int cfathread_create( cfathread_t * h, c fathread_attr_t * a, void *(*main)( void * ), void * arg ) __attribute__((nonnull (1)));57 int cfathread_create( cfathread_t * h, const cfathread_attr_t * a, void *(*main)( void * ), void * arg ) __attribute__((nonnull (1))); 55 58 int cfathread_join( cfathread_t, void ** retval ); 56 59 -
libcfa/src/stdhdr/math.h
r79e23836 r34d62a7 10 10 // Created On : Mon Jul 4 23:25:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 7 19:05:27 202013 // Update Count : 1 512 // Last Modified On : Mon Mar 15 14:02:03 2021 13 // Update Count : 17 14 14 // 15 15 16 16 extern "C" { 17 #if ! defined( exception ) // nesting ?18 #define exception ``exception // make keyword an identifier19 #define __CFA_MATH_H__20 #endif21 17 22 18 #include_next <math.h> // has internal check for multiple expansion 23 19 24 #if defined( exception ) && defined( __CFA_MATH_H__ ) // reset only if set25 #undef exception26 #undef __CFA_MATH_H__27 #endif28 20 } // extern "C" 29 21
Note:
See TracChangeset
for help on using the changeset viewer.