core: Remove POSIX threads influence from synchronization code
authorChris Dickens <christopher.a.dickens@gmail.com>
Sat, 30 Jan 2016 10:24:39 +0000 (02:24 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Wed, 24 Feb 2016 18:51:49 +0000 (10:51 -0800)
commit3a4fd0ac64cf9d4cf8f2a665f2f43f2bb1d25369
tree6c6f51d19afe7dfe28a9549defbf54274c1ec003
parenta05b282bee6998da3d1a8460b33dc24b69682fb7
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>
libusb/core.c
libusb/io.c
libusb/os/threads_posix.c
libusb/os/threads_posix.h
libusb/os/threads_windows.c
libusb/os/threads_windows.h
libusb/os/windows_nt_common.c
libusb/os/windows_winusb.c
libusb/version_nano.h