Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f53cc81 in mainline for uspace/lib/libc/include/async_priv.h


Ignore:
Timestamp:
2009-10-10T21:50:22Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
b6ee5b1
Parents:
4f5edcf6
Message:

Separate timeout-specific wait data from generic wait data in awaiter_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/async_priv.h

    r4f5edcf6 rf53cc81  
    4141#include <bool.h>
    4242
    43 /** Structures of this type represent a waiting fibril. */
     43/** Structures of this type are used to track the timeout events. */
    4444typedef struct {
    45         /** Expiration time. */
    46         struct timeval expires;
    47        
    4845        /** If true, this struct is in the timeout list. */
    4946        bool inlist;
     
    5249        link_t link;
    5350       
     51        /** If true, we have timed out. */
     52        bool occurred;
     53
     54        /** Expiration time. */
     55        struct timeval expires;
     56} to_event_t;
     57
     58/** Structures of this type represent a waiting fibril. */
     59typedef struct {
    5460        /** Identification of and link to the waiting fibril. */
    5561        fid_t fid;
     
    5763        /** If true, this fibril is currently active. */
    5864        bool active;
    59        
    60         /** If true, we have timed out. */
    61         bool timedout;
     65
     66        /** Timeout wait data. */
     67        to_event_t to_event;
    6268} awaiter_t;
    6369
Note: See TracChangeset for help on using the changeset viewer.