source: benchmark/io/http/worker.hfa @ d1eb9c0

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d1eb9c0 was 481ee28, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Removed experiment type, server just supports both urls.
Logging is now optional.
Added done flag so spurious invalid accepts are caught.

  • Property mode set to 100644
File size: 487 bytes
RevLine 
[0aec496]1#pragma once
2
3#include <thread.hfa>
4
5extern "C" {
6        #include <sys/socket.h>
7}
8
9//=============================================================================================
10// Worker Thread
11//=============================================================================================
12
13thread Worker {
14        int pipe[2];
15        int sockfd;
16        struct sockaddr * addr;
17        socklen_t * addrlen;
18        int flags;
[ece0e80]19        io_cancellation cancel;
[481ee28]20        volatile bool done;
[0aec496]21};
[8e3034d]22void ?{}( Worker & this);
23void main( Worker & );
Note: See TracBrowser for help on using the repository browser.