Changeset 7bd34e5 in mainline for uspace/drv/uhci/utils/hc_synchronizer.h
- Timestamp:
- 2011-01-07T14:40:56Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 8324b65
- Parents:
- 92f924c8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/utils/hc_synchronizer.h
r92f924c8 r7bd34e5 37 37 #include <assert.h> 38 38 #include <driver.h> 39 #include <fibril.h>40 39 #include <usb/usb.h> 41 40 42 41 #include "debug.h" 42 #include "utils/fibril_semaphore.h" 43 43 44 44 typedef struct value 45 45 { 46 46 /* TODO Think of better fibril synch to use */ 47 fid_t waiting_fibril;48 47 usb_transaction_outcome_t result; 49 48 size_t size; 50 booldone;49 fibril_semaphore_t done; 51 50 } sync_value_t; 51 52 void sync_init(sync_value_t *value); 52 53 53 54 void sync_wait_for(sync_value_t *value);
Note:
See TracChangeset
for help on using the changeset viewer.