aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
Commit message (Collapse)AuthorAgeFilesLines
* uhd: move thread loop condition flag to before barrier (prevents race condition)Josh Blum2011-04-221-1/+1
|
* Merge branch 'mingw_cygwin'Josh Blum2011-04-071-0/+6
|\
| * uhd: always link winsock2 on windows, disable pthread SCHED_RR for cygwinJosh Blum2011-04-061-1/+3
| |
| * uhd: tweaks for cygwin/mingw, always link winsock2, findusb1, __USE_W32_SOCKETSJosh Blum2011-04-051-0/+4
| |
* | usb: mark libusb callbacks with LIBUSB_CALL to ensure correct calling conventionJosh Blum2011-04-051-2/+12
|/
* usb: newer libusb1 does not need to link with setupapi.libJosh Blum2011-04-041-4/+0
|
* uhd: specify msvc for implementations known only to work on msvcJosh Blum2011-04-041-2/+2
|
* uhd: implemented boost barriers on all code that creates threadsJosh Blum2011-03-311-2/+6
| | | | | | | | | The barrier ensures that the thread must spawn before the caller exits. Some of the code already used a mutex to accomplish this, however cygwin chokes when a mutex is locked twice by the same thread. Mutex implementations were replaced with the barrier implementation. Also the barrier implementation is far cleaner.
* usb: changes to allow for static linking of libusb on windowsJosh Blum2011-03-281-0/+4
|
* uhd: update copyright headers with automated scriptJosh Blum2011-03-231-1/+1
|
* usb: fix callback cast in libusb zero copy under msvcJosh Blum2011-03-211-1/+1
|
* Merge branch 'usb-cancel' into nextJosh Blum2011-03-171-6/+14
|\ | | | | | | | | Conflicts: host/lib/transport/libusb1_zero_copy.cpp
| * USB zero copy impl: proper cleanup for canceled transfers -- wait for cancel ↵Nick Foster2011-03-161-6/+14
| | | | | | | | before freeing
* | usrp1: safe destruction for usrp1 deviceJosh Blum2011-03-101-6/+7
| |
* | Merge branch 'master' into nextJosh Blum2011-03-031-0/+2
|\| | | | | | | | | | | Conflicts: host/lib/usrp/usrp2/mboard_impl.cpp host/lib/usrp/usrp2/usrp2_impl.cpp
| * udp: return the managed recv buffer to the buffer queue on timeoutJosh Blum2011-03-011-0/+2
| |
* | uhd: replaced instanced of std::exception with the uhd exceptionsJosh Blum2011-02-243-10/+10
| |
* | uhd: renamed the assert header to assert hasJosh Blum2011-02-243-3/+3
| | | | | | | | | | | | | | | | only the assert has implementation is in this header uhd assert throw moved to the exception header updated code base includes to match
* | uhd: moved exception to top level includeJosh Blum2011-02-241-1/+1
| |
* | Merge branch 'usrp2_fw_clock_cleanup' into usrp2_dual_dspJosh Blum2011-02-225-167/+130
|\|
| * uhd: replace header checks in cmake files with more robust compile checks ↵Josh Blum2011-02-212-15/+26
| | | | | | | | | | | | for features implemented different ifdefs in the cpp files
| * udp: try non-blocking recv first for performanceJosh Blum2011-02-203-14/+18
| |
| * udp: update docs for transport, create common header for wait implementationJosh Blum2011-02-204-143/+91
| | | | | | | | | | | | | | Reimplemented simple udp transport with one impl class. Moved wait for ready/select implementation into common header. Important note on select, timeval should have usecs < 1 second or it may error on some platforms. Fixed in this implementation.
* | usrp2: code working again in a completed form but did not test dual dspJosh Blum2011-02-201-2/+2
|/
* uhd: use source properties to set flags and defs not globally, but only for ↵Josh Blum2011-02-171-2/+7
| | | | the source
* uhd: tweaks for windows msvc compiler warnings and errorsJosh Blum2011-02-161-2/+2
|
* usrp-e100: replaced safe managed buffers in usrp-e100 mmap with custom onesJosh Blum2011-02-152-115/+0
| | | | | | | | the buffers are reusable and the overhead is reduced (nothing to malloc) also removed the zero_copy.cpp (not needed anymore) need to test on device...
* uhd: reusable buffers for libusb zero copy implementationJosh Blum2011-02-152-347/+186
| | | | tweaks on udp implementation to simplify
* uhd: misc speedups w/ look up tablesJosh Blum2011-02-101-1/+2
| | | | | | | use a look up table for io type size (in the case its used in the fast-path) move the static const pred table in vrt unpacker to the global level, for some reason this was incurring a malloc (perhaps because there were 2 tables).
* udp: udp_zero_copy_asio comments and tweaksJosh Blum2011-02-101-10/+2
|
* uhd: simplified converter calls in vrt pkt handler with ref vector changesJosh Blum2011-02-101-9/+4
|
* uhd: use ref vector class for the conversion routines I/OJosh Blum2011-02-101-2/+2
|
* uhd: tweaks to bounded bufferJosh Blum2011-02-102-7/+7
| | | | | | | Added push with haste. Call with haste first in the wait methods to avoid time compare/wait when not needed. Added new calls to the libusb and udp zero copy impls tests pass
* udp: comments and minor code tweaks for udp zero copy implJosh Blum2011-02-101-18/+41
|
* uhd: tweaks to vrt pkt handler and usrp2 fc monitorJosh Blum2011-02-091-3/+5
| | | | | | pkt handler, only resize once per call to send/recv (not per fragment) fc monitor, code tweaks, check ready before touching time wait stuff (faster)
* uhd: tweaks for windows warnings and errorsJosh Blum2011-02-091-3/+3
|
* uhd: replaced std::vector<type> for buffer arguments in send/recvJosh Blum2011-02-091-4/+4
| | | | | | | | | Created new type ref_vector for representing a vector of pointers. Can be created from std::vector or a pointer. Removes the convenience constrcutors for send/recv, its not needed. Removes malloc/free overhead when using send/recv with pointer.
* udp: removed asio implementation, created custom managed buffer classes to ↵Josh Blum2011-02-091-155/+115
| | | | re-use
* uhd: replace asio buffer in make safe w/ memory and length, makes things simplerJosh Blum2011-02-073-26/+33
|
* uhd: removed instances of shared_from_this() in transportsJosh Blum2011-02-052-4/+3
| | | | | | Its known to be slow and using sptrs of large objects. This should be a slight performance improvement for libusb and usrp_e100_mmap implementation.
* uhd: change bounded_buffer implementation and code using itJosh Blum2011-02-053-26/+23
| | | | | | | The bounded buffer now uses the detail idiom to hide implementation to inline better. The whole sptr/make idiom was removed from bounded buffer to just construct directly. The code using bounded buffer was changed for the new api: replaces access operators and calls to the factory function.
* uhd: work to remove dynamic allocations of std::vector in vrt_packet_handler ↵Josh Blum2011-02-051-22/+25
| | | | calls
* udp: simplfy zero copy asio overhead with less shared_from_this, and timed ↵Josh Blum2011-02-051-19/+25
| | | | waits when not needed
* uhd: various performance tweaksJosh Blum2011-02-042-24/+41
|
* Merge branch 'udp_xport_work'Josh Blum2011-01-261-45/+9
|\
| * udp_zero_copy_asio: removed the #ifdefed num frames and min buff size stuffJosh Blum2011-01-261-45/+9
| | | | | | | | | | | | basically, everything can share a common number of frames, and there is no min buff size, only resize if a size was specified, this simplifies the warnings and resize code
* | uhd: if_addrs check that iter->ifa_addr is NULL before continuingJosh Blum2011-01-261-0/+1
|/ | | | | Happened when building UHD within the OpenWRT environment where ifa_addr can be null it seems!
* uhd: fixed maxosx bug, was resizing the transport bufferJosh Blum2011-01-261-4/+0
| | | | | | but it cant be resized on macos and I messed up the code that blocked that behavior reimplemented block in usrp2_impl, seems more correct here
* udp: revert depadding hack for recv_frame_sizeJosh Blum2011-01-211-1/+1
|
* usb: restored disable_interruption on get_lut_with_wait (gets called externally)Josh Blum2011-01-211-0/+1
|