| Commit message (Collapse) | Author | Files | Lines |
|
Closes #4236
CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/".
#include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
|
|
* Change reinterpret_cast -> static_cast wherever possible
* Remove more unnecessary `const_cast`s.
reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
|
|
Fixes #4040
* The TCP connection is now shutdown after OnBodyFinished
* Any open connections are closed when cNetworkSingleton::Terminate() is called.
* Removed ownership cycles in cUrlClientRequest
* Added a check to the test to ensure there are no leaks.
|
|
Also fixed the misleading name.
|
|
|
|
|
|
|
|
* SelfTests: Added a cEvent stress-test.
* cNetwork: Fixed startup event hang.
The original code used to hang with a ~ 1:50000 chance, because on Linux the cEvent was destroyed before its "Set()" returned.
|
|
|
|
Restarts are now an actual, close-as-possible to application
exit+reopen.
|
|
Should fix random failures in Google-test.
|
|
|
|
This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor.
|
|
Ref.: http://forum.mc-server.org/showthread.php?tid=1700&pid=17947#pid17947
|
|
|
|
|
|
|