Changes in uspace/app/vuhid/main.c [beee81a:57c7050] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/vuhid/main.c
rbeee81a r57c7050 132 132 .in_endpoint_first_free = 1, 133 133 .out_endpoints_mapping = { NULL }, 134 .out_endpoint_first_free = 1, 135 136 .iface_count = 0, 137 .iface_died_count = 0 138 // mutex and CV must be initialized elsewhere 134 .out_endpoint_first_free = 1 139 135 }; 140 141 136 142 137 /** Keyboard device. … … 156 151 157 152 usb_log_enable(USB_LOG_LEVEL_DEBUG2, "vusbhid"); 158 159 fibril_mutex_initialize(&vuhid_data.iface_count_mutex);160 fibril_condvar_initialize(&vuhid_data.iface_count_cv);161 153 162 154 /* Determine which interfaces to initialize. */ … … 190 182 printf("Connected to VHCD...\n"); 191 183 192 wait_for_interfaces_death(&hid_dev); 184 while (true) { 185 async_usleep(10 * 1000 * 1000); 186 } 193 187 194 188 printf("Terminating...\n"); 195 189 196 usbvirt_device_unplug(&hid_dev);197 198 190 return 0; 199 191 }
Note:
See TracChangeset
for help on using the changeset viewer.