fixed threading issue in NxsTestHub. NxsTesthub has to wait for its own thread to shut down on test end.

This commit is contained in:
electron128 2015-12-20 14:31:26 +01:00
parent 63c6629e57
commit a8b2bc776e
2 changed files with 10 additions and 28 deletions

View file

@ -35,7 +35,7 @@ namespace rs_nxs_test
* and synchronise according to their subscriptions. The default is to subscribe to all groups held by other peer
* The threads for both net instances are started which begins their processing of transactions
*/
class NxsTestHub : public RsThread, public RecvPeerItemIface
class NxsTestHub : public RsTickingThread, public RecvPeerItemIface
{
public:
@ -58,12 +58,6 @@ namespace rs_nxs_test
*/
bool testsPassed();
/*!
* This simulates the p3Service ticker and calls both gxs net services tick methods
* Also enables transport of messages between both services
*/
void runloop();
/*!
* Begings test, equivalent to CreateThread(this)
*/
@ -97,7 +91,11 @@ namespace rs_nxs_test
private:
void tick();
/*!
* This simulates the p3Service ticker and calls both gxs net services tick methods
* Also enables transport of messages between both services
*/
virtual void data_tick();
private: