Peter Johnson
6131f4e32b
clang-tidy: modernize-concat-nested-namespaces (NFC)
2020-12-29 14:26:19 -08:00
Peter Johnson
2aed432b4b
Add braces to C++ single-line loops and conditionals (NFC) ( #2973 )
...
This makes code easier to read and more consistent between C++ and Java.
Also update clang-format settings to always add a line break (even if no braces are used).
2020-12-28 12:58:06 -08:00
Peter Johnson
8f1f64ffb6
Remove year from file copyright message (NFC) ( #2972 )
...
Also update copyright to include "and other WPILib contributors" and clarify
license referral language to not be restricted to FIRST teams.
2020-12-26 14:12:05 -08:00
Tyler Veness
22c0e2813a
[build] Upgrade CI to clang-format 10.0 ( #1961 )
...
MacOS no longer ships 6.0, and Arch Linux's mesa GPU drivers are no longer compatible with LLVM 6.0.
2020-06-27 20:39:00 -07:00
Peter Johnson
10731f3d6b
Update uv Udp wrapper for latest features
2019-07-15 20:15:37 -05:00
Tyler Veness
f432f65bef
Update copyright year in license to 2019 ( #1524 )
...
Also update clang-format to 6.0.
2019-05-17 17:35:09 -07:00
Thad House
76d9e26633
uv: Add reuse to pipe ( #1577 )
...
Needed for a reconnection API
2019-02-09 00:09:22 -08:00
Thad House
f156a00117
wpiutil uv: Pass IPC value of listening pipe to accepted pipe ( #1576 )
...
Otherwise, the acception fails.
2019-01-30 20:37:28 -08:00
Peter Johnson
df347e3d80
wpiutil: uv::Process: Revamp args/options approach ( #1434 )
2018-11-19 19:54:54 -08:00
Peter Johnson
172e438cd6
wpiutil: uv::Async: Keep weak reference to loop
...
Other handles can only be used within the loop itself, but Async is intended
to be used from another thread. This introduces the possibility of a race
condition between the loop being destroyed and the Async being destroyed.
Change Async to keep a weak reference to a loop and check it before performing
libuv operations.
2018-10-16 09:40:59 -07:00
Peter Johnson
7933d2cbe5
wpiutil: uv: Don't close uninitialized handles ( #1372 )
2018-10-16 00:38:48 -07:00
Peter Johnson
164e9a2c7d
wpiutil: uv::Work: Don't connect work and afterWork if they're null
2018-10-05 13:32:51 -07:00
Peter Johnson
f3fb95af70
wpiutil: uv::Tcp: Simplify reuse function
2018-10-05 13:32:51 -07:00
Peter Johnson
40a9fc44ff
wpiutil: uv::Poll: add reuse functionality
2018-10-05 13:32:51 -07:00
Peter Johnson
1de1900dbb
Change uv::Async to accept data parameters
...
This is a breaking change as it makes Async a template (e.g. Async<> must
be used instead of just Async). When data parameters are provided, an
internal mutex and vector is used to hold the parameter packs until the loop
runs.
2018-08-20 22:21:53 -07:00
Peter Johnson
739267d36d
Add Reuse function to uv::Tcp ( #1208 )
...
This allows reusing the Tcp object in cases when the connection errors out.
2018-07-22 12:31:50 -07:00
Peter Johnson
e2314f3528
wpiutil: Add C++ libuv wrappers ( #1166 )
...
- Provide an EventLoopRunner to run uv::Loop on a separate thread.
- Add raw_ostream wrapper for uv::Buffer.
2018-07-17 01:06:24 -07:00