Commit Graph

4944 Commits

Author SHA1 Message Date
Jason Rhinelander
460d64fc0f Simplify AlignedBuffer alignment implementation
This simplifies the use of std::aligned_storage with just using an
`alignas` on AlignedBuffer itself so that the (only) data member gets
the proper alignment and saves a bunch of reinterpret_casts in favour of
just having the std::array as an ordinary member.
2019-12-12 12:12:45 -04:00
Jeff
97e854e4ed
Merge pull request #965 from jagerman/version-generation
Put version info into a compiled file
2019-12-12 07:00:17 -05:00
Jason Rhinelander
638fb25b47 Put version info into a compiled file
This rewrites the version info using lokid's approach of compiling it
into a .cpp file that gets generated as part of the build (*not* during
the configure stage).

Among other things, this means that changing the version no longer
invalidates ccache or cmake dependencies, and because it depends on
`.git/index` git commits will cause the version to be regenerated,
making the commit tag more reliable (currently if you rebuild without
running cmake your git commit tag doesn't update).
2019-12-11 22:40:07 -04:00
Jason Rhinelander
99d27a4886 Add missing ev_libuv (now needed everywhere) 2019-12-11 19:19:28 -04:00
Jason Rhinelander
da6486a946
Merge pull request #964 from notlesh/fix_version_typo
Remove typo in version changes
2019-12-11 19:19:10 -04:00
Stephen Shelton
211a5f7a03 Remove typo in version changes 2019-12-11 16:17:34 -07:00
Jeff
27a5904d68
Merge pull request #963 from majestrate/consolidate-versions-2019-12-11
consolidate versions
2019-12-11 17:30:19 -05:00
Jeff Becker
4fdff7f233
consolidate versions 2019-12-11 17:06:44 -05:00
Jeff
a573ff5256
Merge pull request #962 from majestrate/win32-tun-libu-2019-12-11
win32 tun and libuv for win32
2019-12-11 16:57:01 -05:00
Jeff Becker
f259cca0ba
remove mutexes 2019-12-11 16:49:00 -05:00
Jeff Becker
85e911fed0
fug 2019-12-11 16:36:13 -05:00
Jeff Becker
7a78160bf0
final change 2019-12-11 16:34:03 -05:00
Jeff Becker
5729d0bff5
more 2019-12-11 16:31:49 -05:00
Jeff Becker
c4f08e5145
finish remaining changes 2019-12-11 16:18:47 -05:00
Jeff Becker
abf9544ddc
make libuv on win32 work 2019-12-11 16:05:40 -05:00
Jeff
0b9eb13f5f
Merge pull request #960 from notlesh/aligned_buffer_iszero_optimization
Optimize AlignedBuffer:::IsZero()
2019-12-10 14:22:49 -05:00
Jeff
0082a343cd
Merge pull request #959 from majestrate/dev
fixes for travis
2019-12-10 14:22:29 -05:00
Stephen Shelton
e2e9e63467 Optimize AlignedBuffer:::IsZero() 2019-12-10 11:50:52 -07:00
Jeff Becker
95eee4081a trypushback 2019-12-10 11:49:32 -07:00
Jeff Becker
cdfdfa1068 use thread queue 2019-12-10 11:49:32 -07:00
Jeff Becker
8455d5d1cf more cleanup 2019-12-10 11:49:32 -07:00
Jeff Becker
b286230d40 limit timer calls 2019-12-10 11:49:32 -07:00
Jeff Becker
35672e6d8c call timers with queuer if set 2019-12-10 11:49:32 -07:00
Jeff Becker
cec36b62b5 make logic and net thread one in the same 2019-12-10 11:49:32 -07:00
Jeff Becker
581306e35f prevent crash on exit 2019-12-10 11:49:32 -07:00
Jeff Becker
d77840d78d more travis config tweaks 2019-12-10 11:49:32 -07:00
Jeff Becker
d9ddbae564 allow windows to fail 2019-12-10 11:49:32 -07:00
Jeff Becker
c9d38d421b clang fixes 2019-12-10 11:49:32 -07:00
Jeff Becker
1ddc2b40aa another attempt at travis fix 2019-12-10 11:49:32 -07:00
Jeff Becker
f29083f765 more travis fixes 2019-12-10 11:49:32 -07:00
Jeff Becker
4f87a95f66 fixes for travis 2019-12-10 11:49:32 -07:00
Jeff Becker
12e141d2de
trypushback 2019-12-10 11:07:09 -05:00
Jeff Becker
5202bd703a
use thread queue 2019-12-10 11:05:19 -05:00
Jeff Becker
54e10450cf
more cleanup 2019-12-10 10:43:27 -05:00
Jeff Becker
700882a0cc
limit timer calls 2019-12-10 10:29:39 -05:00
Jeff Becker
38628ca153
call timers with queuer if set 2019-12-10 10:26:57 -05:00
Jeff Becker
6f36ac7a22
make logic and net thread one in the same 2019-12-10 10:21:52 -05:00
Jeff Becker
a0af785374
prevent crash on exit 2019-12-10 10:21:07 -05:00
Jeff Becker
277a238fbf
more travis config tweaks 2019-12-10 09:25:08 -05:00
Jeff Becker
35d7a296bc
allow windows to fail 2019-12-10 09:20:31 -05:00
Jeff Becker
75683bea76
clang fixes 2019-12-10 09:14:16 -05:00
Jeff Becker
736ac72111
another attempt at travis fix 2019-12-10 09:04:33 -05:00
Jeff Becker
ca40a3316a
more travis fixes 2019-12-10 08:52:46 -05:00
Jeff Becker
5f01d75c2c
fixes for travis 2019-12-10 08:37:41 -05:00
Jeff
a75ee79872
Merge pull request #958 from majestrate/dev
fix unit test for config
2019-12-10 08:34:40 -05:00
Jeff Becker
8f891c57b6
fix unit tests 2019-12-10 08:33:59 -05:00
Jeff
22e9223e74
Merge pull request #955 from jagerman/remove-unused-arg
Remove unused argument
2019-12-10 07:51:48 -05:00
Jeff
fa75d7c96f
Merge pull request #957 from majestrate/reduce-cpu-use-in-tun-handler-2019-12-09
reduce cpu use in logic thread
2019-12-09 17:35:27 -05:00
Jeff Becker
a7884a82e2
use faster hashing 2019-12-09 17:35:05 -05:00
Jeff
e9fa49c588
Merge pull request #954 from majestrate/reduce-log-levels-at-runtime-2019-12-09
Reduce log levels at runtime
2019-12-09 17:14:56 -05:00