Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    rc402739f r93526ef  
    159159
    160160        static inline void process(struct io_uring_cqe & cqe ) {
    161                 struct io_future_t * future = (struct io_future_t *)(uintptr_t)cqe.user_data;
    162                 __cfadbg_print_safe( io, "Kernel I/O : Syscall completed : cqe %p, result %d for %p\n", future, cqe.res, data->thrd );
    163 
    164                 fulfil( *future, cqe.res );
     161                struct __io_user_data_t * data = (struct __io_user_data_t *)(uintptr_t)cqe.user_data;
     162                __cfadbg_print_safe( io, "Kernel I/O : Syscall completed : cqe %p, result %d for %p\n", data, cqe.res, data->thrd );
     163
     164                data->result = cqe.res;
     165                post( data->sem );
    165166        }
    166167
Note: See TracChangeset for help on using the changeset viewer.