- Fix: avoid infinite loop on mulitcast read thread if no data to read
Pre-ci test passed git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4000 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Executable
+34
@@ -0,0 +1,34 @@
|
||||
// ===========================================================================
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
// ===========================================================================
|
||||
#include "RRMMessageHandler.h"
|
||||
#include "TestScenario.h"
|
||||
// ===========================================================================
|
||||
static bool quit = false;
|
||||
// ===========================================================================
|
||||
void sigint(int)
|
||||
// ===========================================================================
|
||||
{
|
||||
quit = true;
|
||||
}
|
||||
// ===========================================================================
|
||||
int main(int argc,char *argv[])
|
||||
// ===========================================================================
|
||||
{
|
||||
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
signal(SIGINT, sigint);
|
||||
|
||||
// start RRC server
|
||||
RRMMessageHandler::Instance();
|
||||
|
||||
// start scenario
|
||||
TestScenario::Start(TestScenario::SCENARIO_ALL_IS_OK);
|
||||
|
||||
RRMMessageHandler::Instance()->Join(&quit);
|
||||
fprintf(stderr, "\nRRM LTE Exiting...\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user