Changeset 4fd3faf in mainline for uspace/lib/usb
- Timestamp:
- 2011-04-08T11:58:18Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ffc63b0
- Parents:
- cd1cec3b
- Location:
- uspace/lib/usb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/endpoint.h
rcd1cec3b r4fd3faf 53 53 fibril_mutex_t guard; 54 54 fibril_condvar_t avail; 55 bool active;55 volatile bool active; 56 56 link_t same_device_eps; 57 57 } endpoint_t; -
uspace/lib/usb/src/host/batch.c
rcd1cec3b r4fd3faf 79 79 instance->error = EOK; 80 80 instance->ep = ep; 81 endpoint_use(instance->ep); 81 82 } 82 83 /*----------------------------------------------------------------------------*/ … … 89 90 { 90 91 assert(instance); 92 assert(instance->ep); 93 endpoint_release(instance->ep); 91 94 instance->next_step(instance); 92 95 } -
uspace/lib/usb/src/host/endpoint.c
rcd1cec3b r4fd3faf 60 60 { 61 61 assert(instance); 62 assert(!instance->active); 62 63 list_remove(&instance->same_device_eps); 63 64 free(instance); … … 79 80 fibril_mutex_lock(&instance->guard); 80 81 instance->active = false; 82 fibril_mutex_unlock(&instance->guard); 81 83 fibril_condvar_signal(&instance->avail); 82 fibril_mutex_unlock(&instance->guard);83 84 } 84 85 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.