source: benchmark/io/http/worker.hfa@ 91aa5ab

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 91aa5ab was 56c44dc, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Worker now each do their own accept4

  • Property mode set to 100644
File size: 441 bytes
Line 
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;
19};
20void ?{}( Worker & this);
21void main( Worker & );
Note: See TracBrowser for help on using the repository browser.