Merge remote-tracking branch 'origin/topic/robin/log-threads' into topic/bernhard/input-threads

This commit is contained in:
Bernhard Amann 2012-03-07 13:43:27 -08:00
commit b31230d429
7 changed files with 12 additions and 5 deletions

@ -1 +1 @@
Subproject commit 43308aab47a3357ca1885e1b6954154a2744d821 Subproject commit 3034da8f082b61157e234237993ffd7a95be6e62

@ -1 +1 @@
Subproject commit 139cc2e1e049c4e1cc7e95f20866102be1d3d599 Subproject commit f53bcb2b492cb0db3dd288384040abc2ab711767

@ -1 +1 @@
Subproject commit d6e36c95e0335f7cc081191c8612085bd12706f9 Subproject commit 2602eb53e70d7f0afae8fac58d7636b9291974a4

@ -1 +1 @@
Subproject commit e908ba686dceb56065bdf569c18dd0f67f662f6b Subproject commit 954538514d71983e7ef3f0e109960466096e1c1d

View file

@ -486,6 +486,8 @@ void net_run()
// since Bro timers are not high-precision anyway.) // since Bro timers are not high-precision anyway.)
if ( ! using_communication ) if ( ! using_communication )
usleep(100000); usleep(100000);
else
usleep(1000);
// Flawfinder says about usleep: // Flawfinder says about usleep:
// //

View file

@ -10,7 +10,7 @@ Manager::Manager()
did_process = true; did_process = true;
next_beat = 0; next_beat = 0;
terminating = false; terminating = false;
idle = false; idle = true;
} }
Manager::~Manager() Manager::~Manager()
@ -58,6 +58,7 @@ void Manager::AddThread(BasicThread* thread)
{ {
DBG_LOG(DBG_THREADING, "Adding thread %s ...", thread->Name().c_str()); DBG_LOG(DBG_THREADING, "Adding thread %s ...", thread->Name().c_str());
all_threads.push_back(thread); all_threads.push_back(thread);
idle = false;
} }
void Manager::AddMsgThread(MsgThread* thread) void Manager::AddMsgThread(MsgThread* thread)

View file

@ -4,6 +4,10 @@
using namespace std; using namespace std;
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "Type.h" #include "Type.h"
#include "net_util.h" #include "net_util.h"