Changeset 7099861 in mainline
- Timestamp:
- 2011-09-07T10:20:11Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 933b0d7
- Parents:
- 563d9d0a
- Location:
- uspace/lib/usbhost
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/usb_endpoint_manager.h
r563d9d0a r7099861 52 52 hash_table_t ep_table; 53 53 fibril_mutex_t guard; 54 fibril_condvar_t change;55 54 size_t free_bw; 56 55 } usb_endpoint_manager_t; -
uspace/lib/usbhost/src/usb_endpoint_manager.c
r563d9d0a r7099861 144 144 assert(instance); 145 145 fibril_mutex_initialize(&instance->guard); 146 fibril_condvar_initialize(&instance->change);147 146 instance->free_bw = available_bandwidth; 148 147 const bool ht = … … 194 193 instance->free_bw -= bw; 195 194 fibril_mutex_unlock(&instance->guard); 196 fibril_condvar_broadcast(&instance->change);197 195 return EOK; 198 196 } … … 221 219 222 220 fibril_mutex_unlock(&instance->guard); 223 fibril_condvar_broadcast(&instance->change);224 221 return EOK; 225 222 }
Note:
See TracChangeset
for help on using the changeset viewer.