Self tests (#3242)

* 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.
This commit is contained in:
Mattes D
2016-06-26 14:51:12 +01:00
committed by worktycho
parent 4e2c92d15f
commit 1462e4f70e
5 changed files with 114 additions and 6 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ protected:
std::thread m_EventLoopThread;
/** Event that is signalled once the startup is finished and the LibEvent loop is running. */
UniquePtr<cEvent> m_StartupEvent;
cEvent m_StartupEvent;
/** Converts LibEvent-generated log events into log messages in MCS log. */