Commit History

Author SHA1 Message Date
  Con Kolivas b52bb5c9e2 Alter the usb cancellable list only under cgusb_fd_lock write lock. 12 years ago
  Con Kolivas 19ec360f7c Pass the cancellable option to _usb_read options to decide on whether to add usb transfers to the list of cancellable transfers. 12 years ago
  Con Kolivas 2b075cccbf Create a linked list of potentially cancellable usb transfers. 12 years ago
  Con Kolivas 824aa5cb51 Keep a global counter of how many async usb transfers are in place. 12 years ago
  Con Kolivas 856471e392 Perform libusb_submit_transfer under the write variant of cgusb_fd_lock 12 years ago
  Con Kolivas 269a145a70 Add usb command name to critical libusb error reporting. 12 years ago
  Con Kolivas 44cc52c3d0 Drop usb buffering message to debug logging level. 12 years ago
  Con Kolivas eed0afcd04 Convert libusb transfer errors to regular libusb error messages to allow for accurate message reporting. 12 years ago
  Con Kolivas d77f367279 Fixing the memory leak for remaining semaphores means we can go back to using async transfers on other OSes with our own timeout management again. 12 years ago
  Con Kolivas 8e9f32a81b Add a forcelog variant of applog which invalidates any console lock to force output. 12 years ago
  Con Kolivas 789d448e84 Perform sync transfers on shutdown to allow final transfers to complete. 12 years ago
  Con Kolivas ad8d94979f Destroy cgsems used after transfers to not leave open files on osx. 12 years ago
  Con Kolivas 103bc0bafe Revert to using timeouts on !linux since libusb leaks memory without them. 12 years ago
  Con Kolivas 955e971d3d Prevent further USB transfers from occurring once the shutdown signal has been sent to prevent transfers getting stuck and libusb failing to shut down. 12 years ago
  Con Kolivas 7c6bd4a8fb Emulate the libusb_control_transfer sync setup in our async variant. 12 years ago
  Con Kolivas e6280c85d2 Add the libusb control setup size offset for control writes. 12 years ago
  Con Kolivas 91d1d104d1 Merge branch 'master' of github.com:ckolivas/cgminer 12 years ago
  Con Kolivas 8fdaeb0ac9 Differentiate send from receive in control transfers! 12 years ago
  kanoi bae0815edf Merge pull request #505 from kanoi/master 12 years ago
  Kano 108e73763b usbutils - make all libusb_error_name messages the same 12 years ago
  Con Kolivas 9e287f9598 Merge pull request #499 from someone42/master 12 years ago
  Con Kolivas 02a4f8df9c Convert the usb callback function to using cgsem_t timed waits to avoid race conditions with conditionals/mutexes. 12 years ago
  Con Kolivas 1d9f90b256 Revert "Convert the usb callback function to use a cgsem_t using the timedwait code to avoid races with mutexes/conditionals." 12 years ago
  Con Kolivas 433465bcfc Convert the usb callback function to use a cgsem_t using the timedwait code to avoid races with mutexes/conditionals. 12 years ago
  Con Kolivas 9ca22ed493 Use the one LIBUSB_ERROR_TIMEOUT for cancelled transactions since this error is explicitly tested for in various drivers. 12 years ago
  Con Kolivas a7580f1ff2 Do not use locking on usb callback function pthread signalling to prevent deadlock with libusb's own event lock. 12 years ago
  Con Kolivas 280dc4bf01 Lock mutex before second pthread_cond_wait in usbutils to prevent a race. 12 years ago
  Con Kolivas 84de52c1c6 Use a write lock when performing any USB control transfers to prevent concurrent transfers. 12 years ago
  Con Kolivas c069028648 Free a libusb transfer after we have finished using it to avoid a dereference in usb_control_transfer 12 years ago
  Con Kolivas 84f642f563 Although async transfers are meant to use heap memory, we never return before the transfer function has completed so stack memory will suffice for control transfers, fixing a memory leak in the process. 12 years ago