ADT
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | 
            Last change
 on this file since 2b910f9 was             4f762d3, checked in by Thierry Delisle <tdelisle@…>, 5 years ago           | 
        
        
          | 
             
Fix httpforall after changes to I/O 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            462 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [0aec496] | 1 | #pragma once
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | #include <thread.hfa>
 | 
|---|
 | 4 | 
 | 
|---|
 | 5 | extern "C" {
 | 
|---|
 | 6 |         #include <sys/socket.h>
 | 
|---|
 | 7 | }
 | 
|---|
 | 8 | 
 | 
|---|
 | 9 | //=============================================================================================
 | 
|---|
 | 10 | // Worker Thread
 | 
|---|
 | 11 | //=============================================================================================
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 | thread Worker {
 | 
|---|
 | 14 |         int pipe[2];
 | 
|---|
 | 15 |         int sockfd;
 | 
|---|
 | 16 |         struct sockaddr * addr;
 | 
|---|
 | 17 |         socklen_t * addrlen;
 | 
|---|
 | 18 |         int flags;
 | 
|---|
| [481ee28] | 19 |         volatile bool done;
 | 
|---|
| [0aec496] | 20 | };
 | 
|---|
| [8e3034d] | 21 | void ?{}( Worker & this);
 | 
|---|
 | 22 | void main( Worker & );
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.