Ignore:
Timestamp:
Mar 15, 2021, 12:34:50 PM (7 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
36fbaeca
Parents:
4c05a40
Message:

Fixed warnings and errors in cfathreads.cfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/clib/cfathread.cfa

    r4c05a40 r9e27f69  
    105105        //--------------------
    106106        // Thread
    107         int cfathread_create( cfathread_t * handle, cfathread_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))) {
    108108                cluster * cl = attr ? attr->cl : active_cluster();
    109109                cfathread_t thrd = alloc();
     
    120120                }
    121121                return 0;
     122        }
     123
     124        int cfathread_get_errno(void) {
     125                return errno;
    122126        }
    123127
Note: See TracChangeset for help on using the changeset viewer.