Changeset a80db97


Ignore:
Timestamp:
Mar 2, 2021, 1:20:15 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
6047b00
Parents:
ed2cb3c
Message:

Http_ring now uses eventfd_read instead of io_uring_wait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/http_ring.cpp

    red2cb3c ra80db97  
    465465        while(!done) {
    466466                // Submit all the answers we have and wait for responses
    467                 int ret = io_uring_submit_and_wait(ring, 1);
     467                int ret = io_uring_submit(ring);
    468468                local.to_submit = 0;
    469469
     
    479479
    480480
    481                 // eventfd_t val;
    482                 // ret = eventfd_read(blockfd, &val);
    483 
    484                 // // check errors
    485                 // if (ret < 0) {
    486                 //      fprintf( stderr, "eventfd read error: (%d) %s\n", (int)errno, strerror(errno) );
    487                 //      exit(EXIT_FAILURE);
    488                 // }
     481                eventfd_t val;
     482                ret = eventfd_read(blockfd, &val);
     483
     484                // check errors
     485                if (ret < 0) {
     486                        fprintf( stderr, "eventfd read error: (%d) %s\n", (int)errno, strerror(errno) );
     487                        exit(EXIT_FAILURE);
     488                }
    489489
    490490                struct io_uring_cqe *cqe;
Note: See TracChangeset for help on using the changeset viewer.