Changeset 9e27f69 for libcfa/src/concurrency/clib/cfathread.h
- Timestamp:
- Mar 15, 2021, 12:34:50 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 36fbaeca
- Parents:
- 4c05a40
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.h
r4c05a40 r9e27f69 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
Note: See TracChangeset
for help on using the changeset viewer.