Ignore:
File:
1 edited

Legend:

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

    r7d521e24 raf6136d  
    6161        usb_hub_port_t *ports;
    6262
     63        fibril_mutex_t port_mutex;
     64
    6365        /** connection to hcd */
    6466        usb_hc_connection_t connection;
     
    8991        /** generic usb device data*/
    9092        usb_device_t * usb_device;
     93
     94        /** Number of pending operations on the mutex to prevent shooting
     95         * ourselves in the foot.
     96         * When the hub is disconnected but we are in the middle of some
     97         * operation, we cannot destroy this structure right away because
     98         * the pending operation might use it.
     99         */
     100        size_t pending_ops_count;
     101        /** Guard for pending_ops_count. */
     102        fibril_mutex_t pending_ops_mutex;
     103        /** Condition variable for pending_ops_count. */
     104        fibril_condvar_t pending_ops_cv;
     105
    91106};
    92107
Note: See TracChangeset for help on using the changeset viewer.