Changeset af6136d in mainline for uspace/drv/usbhub/usbhub.c


Ignore:
Timestamp:
2011-05-28T14:54:20Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd143621
Parents:
3fb5a3e
Message:

Guard hub ports with mutex

File:
1 edited

Legend:

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

    r3fb5a3e raf6136d  
    200200        result->control_pipe = &usb_dev->ctrl_pipe;
    201201        result->is_default_address_used = false;
     202
     203        result->ports = NULL;
     204        result->port_count = (size_t) -1;
     205        fibril_mutex_initialize(&result->port_mutex);
    202206
    203207        fibril_mutex_initialize(&result->pending_ops_mutex);
Note: See TracChangeset for help on using the changeset viewer.