3a4fd0ac64cf9d4cf8f2a665f2f43f2bb1d25369 |
|
30-Jan-2016 |
Chris Dickens <christopher.a.dickens@gmail.com> |
core: Remove POSIX threads influence from synchronization code This commit changes the signatures of the synchronization functions to reflect the needs of the library rather than the signature of the pthreads API. The mutex and condition variable attributes parameters have been removed as no part of the core library makes use of them. In addition, the condition variable timed-wait function has been modified to accept the relative time passed in via libusb_wait_for_event(). This allows the implementation-specific code to handle conversion to absolute time as necessary, rather than forcing this to occur. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
/external/libusb/libusb/os/threads_windows.c
|
a05b282bee6998da3d1a8460b33dc24b69682fb7 |
|
30-Jan-2016 |
Chris Dickens <christopher.a.dickens@gmail.com> |
Misc: Remove unused definitions for usbi_cond_signal() Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
/external/libusb/libusb/os/threads_windows.c
|
448584afd1b012210e8e9038f888597588450d7a |
|
30-Jan-2016 |
Chris Dickens <christopher.a.dickens@gmail.com> |
Windows: Fix style issues in threading code Also moves private structure definition outside of header file. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
/external/libusb/libusb/os/threads_windows.c
|
960a6e7506c4d0d59052056ae2ebfffbe8587175 |
|
10-Sep-2015 |
Chris Dickens <christopher.a.dickens@gmail.com> |
core: Prevent attempts to recursively hande events Prior to this commit, it was possible to call certain functions from within a hotplug or transfer completion callback that would in turn attempt to handle events (e.g. any of the sync transfer APIs). This is dangerous because certain events may cause the nested calls to free memory that is currently in use by the previous calls. This implementation uses thread-local storage to store a key within the context that is set to a non-NULL value whenever event handling is occurring. This allows us to detect when dangerous calls are made from within event handling context. Such calls will return an error code of LIBUSB_ERROR_BUSY. Note that this implementation was chosen because of its portability. It is supported on all platforms that libusb supports. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
/external/libusb/libusb/os/threads_windows.c
|
ada59db186aa95215158129db8cd42e079daff07 |
|
13-Nov-2014 |
Pete Batard <pete@akeo.ie> |
Windows: Silence VS2013 code analysis warnings * Also update Windows version report for Windows 10
/external/libusb/libusb/os/threads_windows.c
|
d8a2950f5409ee399c386b56301d49c61ee71fdf |
|
03-Sep-2014 |
Chris Dickens <christopher.a.dickens@gmail.com> |
core: Make use of headers consistent across all files * Include config.h before anything else in all files * Remove unnecessary inclusion of libusb.h * Use angle brackets for system headers and quotes for local headers Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
/external/libusb/libusb/os/threads_windows.c
|
1eff220474f63d7ea7f8f99bef2a3da9da5324eb |
|
09-Jan-2014 |
hjelmn@cs.unm.edu <hjelmn@cs.unm.edu> |
Misc: Revert all references to libusb/libusb.info
/external/libusb/libusb/os/threads_windows.c
|
baf714f5e0f22b968cea0e747c23eeced44f602e |
|
03-Mar-2013 |
Pete Batard <pete@akeo.ie> |
WinCE: Post integration cleanup * Update copyrights and switch to UTF-8 everywhere * Add SleepEx() to missing.h, and move include to libusbi.h * Remove ifdef for GetSystemTimeAsFileTime()
/external/libusb/libusb/os/threads_windows.c
|
9ae570065668ad89fe38afbb5d6f9e60f54a0945 |
|
18-Feb-2013 |
Ludovic Rousseau <ludovic.rousseau@gmail.com> |
Windows: fix compiler warning libusb/os/threads_windows.c:139:1: warning: '__inline' is not at beginning of declaration [-Wold-style-declaration]
/external/libusb/libusb/os/threads_windows.c
|
0ee67c5cb75e75c2a409fa58671fe15da4d8fdf4 |
|
18-Feb-2013 |
Ludovic Rousseau <ludovic.rousseau@gmail.com> |
Windows: fix compiler warning libusb/os/threads_windows.c: In function 'usbi_cond_timedwait': libusb/os/threads_windows.c:190:2: warning: nested extern declaration of 'epoch_time' [-Wnested-externs]
/external/libusb/libusb/os/threads_windows.c
|
790ffc78b008a03c95d10899f53997b504f55c72 |
|
15-Jan-2013 |
Toby Gray <toby.gray@realvnc.com> |
Windows: Simplify poll_windows and add provisions for WinCE * Because poll_windows now requires struct usbi_transfer to be defined, it's inclusion in libusbi.h had to be moved down.
/external/libusb/libusb/os/threads_windows.c
|
d2e8b37a68b06b8d75e9bd947b8a90d570a77778 |
|
03-Aug-2012 |
Orin Eman <orin.eman@gmail.com> |
Core: NULL list pointers on deletion * This aims at highlighting unwanted behaviours on list operations, and facilitate early detection of potential bugs. * This also requires a fix in threads_windows.c * See http://sourceforge.net/mailarchive/message.php?msg_id=29626351
/external/libusb/libusb/os/threads_windows.c
|
ab1b3843bfd544daa5f907d7b9b4c35dce9411dc |
|
10-Jul-2012 |
Simon Haggett <simon.haggett@realvnc.com> |
Windows: usbi_cond_destroy() should free handles created by usbi_cond_intwait(). * Without this change every call to usbi_cond_destroy() leaks an event handle.
/external/libusb/libusb/os/threads_windows.c
|
0e0cbb6c27efa5a2ae58c30267a4be9486c766cc |
|
25-Jun-2012 |
Pete Batard <pete@akeo.ie> |
Windows: Address MSVC Level 4 & WDK's OACR/Prefast warnings * The library is now compiled with warning level 4 for VS2010 * Move silencing of 4200, 28125 and 28719 to msvc/config.h * Add fixes in core to silence unused variables warnings * Ensure that spinlock is always set interlocked in poll_windows * Add missing check for calloc return value * Fix data assignation in conditionals warnings * Fix an OACR/Prefast error related to the use of strncpy in xusb.c * Also fixes whitespace inconsistencies in core * Issues reported by Orin Eman and Xiaofan Chen. See: https://sourceforge.net/mailarchive/message.php?msg_id=29412656
/external/libusb/libusb/os/threads_windows.c
|
a544e5972bf2b0ac9e006439576f681a8439d311 |
|
23-May-2012 |
Pete Batard <pete@akeo.ie> |
Misc: Ensure all sources are UTF-8 * Also remove extra lines at the end of samples
/external/libusb/libusb/os/threads_windows.c
|
463dda06db5da5de0eab32820c7af60605625afe |
|
06-May-2012 |
Peter Stuge <peter@stuge.se> |
Core: Add a timestamping and thread ID to logging
/external/libusb/libusb/os/threads_windows.c
|
24d595aa71e7fd0f14d40e933a33f852f7269c8b |
|
10-Apr-2012 |
Pete Batard <pete@akeo.ie> |
Windows: misc improvements * prefer calloc over malloc * silence VS2010 intellisense warnings on mem allocation * other minor fixes and formatting improvements to align with -pbatard
/external/libusb/libusb/os/threads_windows.c
|
791b7473ec38155ee3d1d9889f3d0f1b4c8f33f0 |
|
03-Apr-2012 |
Pete Batard <pete@akeo.ie> |
Misc: Rebrand to libusbx * Mentions of 'libusb' in doxygen are changed to 'libusbx' * Also update copyright notices and remove unneeded EOF LFs
/external/libusb/libusb/os/threads_windows.c
|
c0e7b289fdb35687b90263b14426319d2b96b132 |
|
28-Mar-2012 |
Pete Batard <pete@akeo.ie> |
Windows: fix Clang warnings about unused assignations
/external/libusb/libusb/os/threads_windows.c
|
9a4249f8a104b98a15a7e3ba7ecae9a385ed9027 |
|
11-Jul-2010 |
Pete Batard <pbatard@gmail.com> |
Add Windows support Via Cygwin/MinGW, libusb now has windows support. Thanks to contributors: Michael Plante, Orin Eman, Peter Stuge, Stephan Meyer, Xiaofan Chen.
/external/libusb/libusb/os/threads_windows.c
|