Commit Graph

938 Commits

Author SHA1 Message Date
Stefano Fiorentino
0156258c9b
Merge pull request #224 from stefanofiorentino/experimental
refactor the `test' includes
2020-10-08 10:46:11 +02:00
Fiorentino Ing. Stefano
184488be25 refactor the `test' includes
Signed-off-by: Fiorentino Ing. Stefano <stefano.fiore84@gmail.com>
2020-10-08 08:10:11 +00:00
Stefano Fiorentino
60bd3aea38
Merge pull request #222 from stefanofiorentino/experimental
Avoid instantiations as header-only config is used.
2020-10-05 14:16:11 +02:00
Fiorentino Ing. Stefano
41257c60f2 Avoid instantiations as header-only config is used.
Closes #221

Signed-off-by: Fiorentino Ing. Stefano <stefano.fiore84@gmail.com>
2020-10-05 08:26:43 +00:00
Michele Caini
26973f335c updated build system 2020-10-04 22:13:10 +02:00
Michele Caini
6dd4a420f8 updated to libuv 1.40 (close #220) 2020-10-03 23:02:29 +02:00
Michele Caini
77af4a3fc4 updated workflow 2020-09-10 15:42:41 +02:00
Michele Caini
6e5890921a build system: solved an issue with codecov 2020-09-07 08:46:41 +02:00
Michele Caini
13cbd81881 ready to cut a new release (close #219) 2020-09-07 08:44:41 +02:00
Michele Caini
0c1a21e75c doc: added a note about Emitter::clear (close #217) 2020-08-10 00:06:45 +02:00
Michele Caini
0e86ec5847 doc: updated documentation for Loop::walk (close #214) 2020-08-09 23:58:53 +02:00
Michele Caini
91ab230d81 a more vs-friendly gitignore file 2020-07-31 17:51:21 +02:00
Michele Caini
112828c677 test: make work.cpp run correcty also on Windows 2020-07-31 17:06:52 +02:00
Michele Caini
6b1651be7e fixed typo 2020-07-31 16:34:38 +02:00
Michele Caini
a4a27cacff test: make pipe tests run correctly also on Windows 2020-07-31 16:09:29 +02:00
Michele Caini
d2cc600e97 test: make thread tests run fine also on Windows 2020-07-31 13:01:13 +02:00
Michele Caini
9ed3eaebd1 test: make tty test run without errors also on Windows 2020-07-31 12:44:08 +02:00
Michele Caini
a77051e73a test: make util test compile also on Windows 2020-07-31 12:27:43 +02:00
Michele Caini
934851e3f5 test: make loop test compile also on Windows 2020-07-31 12:12:18 +02:00
gallexme
c3e189c612
thread.cpp: suppress narrowing conversions warnings (#216) 2020-07-31 11:20:34 +02:00
Michele Caini
0b329720bf get rid of base handle, loop::walk returns actual handles (see #212, close #214) 2020-07-28 22:34:09 +02:00
Stefano Fiorentino
a10844d4bf
basehandle::type() in uv_walk which is in a timer callback causes double free (#213)
Close #212
2020-07-19 12:08:36 +02:00
Michele Caini
52785475b9 udp: get around an issue with ICC (close #209) 2020-07-02 15:47:57 +02:00
Eli Lindsey
1a794772b2
add openbsd support (#204)
* add openbsd support

Renames fileno() so it doesn't clash with OpenBSD's macro expansion.
Makes minor changes to build steps so the test suite compiles and runs
on OpenBSD.

See https://github.com/skypjack/uvw/issues/201 for full context

* drop no-error override

* disable sendfile tests on openbsd

* forgot to commit the new file
2020-06-29 16:37:31 +02:00
Michele Caini
dc67c97ab2 doc: small review + added links to docsforge (close #210) 2020-06-29 16:29:45 +02:00
Michele Caini
f9056e732c resolve an issue with ICC (close #208) 2020-06-29 15:45:55 +02:00
Fiorentino Ing. Stefano
60614d32b8 remove all reference to shared library
too much effort to support cross-platform DSO

Signed-off-by: Fiorentino Ing. Stefano <stefano.fiore84@gmail.com>
2020-06-29 11:10:47 +02:00
Michele Caini
00d5c11e65 doc: make it compile again and suppress some warnings 2020-05-31 16:46:47 +02:00
Michele Caini
37aa1c8260 udp: data event returns non-const data (close #200) 2020-05-27 12:31:53 +02:00
Michele Caini
3a29890651 ready to cut a new release (close #199) 2020-05-25 23:41:44 +02:00
Michele Caini
fb270887b4 updated to libuv v1.38 2020-05-25 23:38:52 +02:00
Michele Caini
e5870c79e1 doc: updated cmake minimum required version (see #194) 2020-05-21 22:35:06 +02:00
Michele Caini
fd52f76e4d doc: removed references to patreon account 2020-05-21 08:46:11 +02:00
Michele Caini
3a02460be1 build system: updated required version for cmake (close #194) 2020-05-17 22:12:33 +02:00
Eli Lindsey
d35f557161
add elindsey to contributors list (#193) 2020-04-27 16:01:43 +02:00
Michele Caini
99e6ba7124 ready to cut a new release (close #191) 2020-04-24 00:59:15 +02:00
Michele Caini
ff97bbbc9d now works with libuv v1.37 (see #191) 2020-04-24 00:57:09 +02:00
Fiorentino Ing. Stefano
3d9e45e733 Switch pragma once to legacy include guards
Signed-off-by: Fiorentino Ing. Stefano <stefano.fiore84@gmail.com>
2020-04-20 18:24:11 +02:00
Fiorentino Ing. Stefano
991f5cdbb8 Extern template instantiations to get rid of clang warnings.
Signed-off-by: Fiorentino Ing. Stefano <stefano.fiore84@gmail.com>
2020-04-19 21:27:43 +02:00
Fiorentino Ing. Stefano
938b8af9b0 Skip including header in .cpp in case UVW_AS_LIB is defined
Signed-off-by: Fiorentino Ing. Stefano <stefano.fiore84@gmail.com>
2020-04-19 18:47:32 +02:00
Michele Caini
c0b9dc919b updated to libuv v1.36 (close #191) 2020-04-18 16:45:21 +02:00
Stefano Fiorentino
4a6289ecf7 improve udp instantiations
Signed-off-by: Stefano Fiorentino <stefano.fiore84@gmail.com>
2020-04-06 17:37:05 +02:00
Stefano Fiorentino
ff0d29309a improve dns instantiations
Signed-off-by: Stefano Fiorentino <stefano.fiore84@gmail.com>
2020-04-06 16:54:07 +02:00
Stefano Fiorentino
b2647468e2 avoid to install .cpp with BUILD_UVW_LIBS
Signed-off-by: Stefano Fiorentino <stefano.fiore84@gmail.com>
2020-04-06 16:15:36 +02:00
Stefano Fiorentino
8872af2d86 improve tcp instantiations
Signed-off-by: Stefano Fiorentino <stefano.fiore84@gmail.com>
2020-04-06 16:03:45 +02:00
Stefano Fiorentino
d611ca264f Instantiate Loop::run<Mode>() in the .cpp
This is possible because a limited values are available as Mode

Signed-off-by: Stefano Fiorentino <stefano.fiore84@gmail.com>
2020-04-06 15:02:26 +02:00
Stefano Fiorentino
0ee7ef41fe adding option to activate UB sanitizer
Signed-off-by: Stefano Fiorentino <stefano.fiore84@gmail.com>
2020-04-03 22:42:45 +02:00
Stefano Fiorentino
03b98bc234 update project description to add shared/static library
Signed-off-by: Stefano Fiorentino <stefano.fiore84@gmail.com>
2020-04-03 22:42:45 +02:00
Eli Lindsey
fc197b5117 fix undefined behavior in resource.hpp
Today, uvw triggers undefined behavior in resource.hpp:
  runtime error: downcast of address which does not point to an object of type 'uvw::FsEventHandle'
  note: object is of type 'uvw::BaseHandle'

It looks like we're saving the current handle in the void* data member
so it can be retrieved on the next callback run. This downcast to a
derived class from its parents ctor as it's being constructed isn't
valid.

Since we're storing this as a void* anyways and all the callsites using
it need to do their own cast on retrieval, we can instead persist the
this pointer. For downcasting to work in all cases the Resource class
tree needs to be leftmost in Handler's multiple inheritance.

Tested by verifying that my unit tests no longer show ubsan errors and
uvw's test suite still passes.
2020-04-02 14:37:45 -04:00
Michele Caini
8233a6e6b2 updated README file (thanks to @escherstair for pointing out some errors in the documentation) 2020-04-01 15:12:30 +02:00