Changeset 5097bed4 in mainline for uspace/drv/usbhub/main.c


Ignore:
Timestamp:
2011-01-07T15:00:31Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
44bb20b
Parents:
43c3937
Message:

usb hub driver codelifting. added futex to guard hub list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/main.c

    r43c3937 r5097bed4  
    3838
    3939usb_general_list_t usb_hub_list;
     40futex_t usb_hub_list_lock;
    4041
    4142static driver_ops_t hub_driver_ops = {
     
    6061{
    6162        usb_dprintf_enable(NAME,1);
     63        futex_initialize(&usb_hub_list_lock, 0);
    6264        usb_lst_init(&usb_hub_list);
     65        futex_up(&usb_hub_list_lock);
    6366        fid_t fid = fibril_create(usb_hub_control_loop, NULL);
    6467        if (fid == 0) {
Note: See TracChangeset for help on using the changeset viewer.