Changeset 4db1fbf in mainline
- Timestamp:
- 2011-01-28T20:34:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e26a4633
- Parents:
- 007e6efa
- Location:
- uspace/lib/c/generic
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r007e6efa r4db1fbf 94 94 #include <futex.h> 95 95 #include <async.h> 96 #include <async_priv.h>97 96 #include <fibril.h> 98 97 #include <stdio.h> … … 105 104 #include <arch/barrier.h> 106 105 #include <bool.h> 106 #include "priv/async.h" 107 107 108 108 atomic_t async_futex = FUTEX_INITIALIZER; -
uspace/lib/c/generic/fibril_synch.c
r007e6efa r4db1fbf 36 36 #include <fibril.h> 37 37 #include <async.h> 38 #include <async_priv.h>39 38 #include <adt/list.h> 40 39 #include <futex.h> … … 44 43 #include <stacktrace.h> 45 44 #include <stdlib.h> 45 #include "priv/async.h" 46 46 47 47 static void optimize_execution_power(void) -
uspace/lib/c/generic/priv/async.h
r007e6efa r4db1fbf 33 33 */ 34 34 35 #ifndef LIBC_ ASYNC_PRIV_H_36 #define LIBC_ ASYNC_PRIV_H_35 #ifndef LIBC_PRIV_ASYNC_H_ 36 #define LIBC_PRIV_ASYNC_H_ 37 37 38 38 #include <adt/list.h> … … 51 51 /** If true, we have timed out. */ 52 52 bool occurred; 53 53 54 54 /** Expiration time. */ 55 55 struct timeval expires; … … 65 65 } wu_event_t; 66 66 67 68 67 /** Structures of this type represent a waiting fibril. */ 69 68 typedef struct { … … 73 72 /** If true, this fibril is currently active. */ 74 73 bool active; 75 74 76 75 /** Timeout wait data. */ 77 76 to_event_t to_event; … … 80 79 } awaiter_t; 81 80 82 extern void async_insert_timeout(awaiter_t * wd);81 extern void async_insert_timeout(awaiter_t *); 83 82 84 83 #endif
Note:
See TracChangeset
for help on using the changeset viewer.