Skip to content

Commit

Permalink
Formatting changes. Nothing to see here, move along.
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Jul 8, 2012
1 parent 24da25f commit 31f09a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions mythtv/libs/libmythbase/system-unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,18 +484,18 @@ void MythSystemSignalManager::run(void)
{
RunProlog();
LOG(VB_GENERAL, LOG_INFO, "Starting process signal handler");
while( run_system )
while (run_system)
{
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 50 * 1000 * 1000; // 50ms
nanosleep(&ts, NULL); // sleep 50ms

while( run_system )
while (run_system)
{
// handle cleanup and signalling for closed processes
listLock.lock();
if( msList.isEmpty() )
if (msList.isEmpty())
{
listLock.unlock();
break;
Expand All @@ -521,7 +521,7 @@ void MythSystemSignalManager::run(void)
readThread->remove(ms->m_stdpipe[2]);
CLOSE(ms->m_stdpipe[2]);

if( ms->GetStatus() == GENERIC_EXIT_OK )
if (ms->GetStatus() == GENERIC_EXIT_OK)
emit ms->finished();
else
emit ms->error(ms->GetStatus());
Expand All @@ -544,10 +544,11 @@ MythSystemUnix::MythSystemUnix(MythSystem *parent) :
{
m_parent = parent;

connect( this, SIGNAL(started()), m_parent, SIGNAL(started()) );
connect( this, SIGNAL(finished()), m_parent, SIGNAL(finished()) );
connect( this, SIGNAL(error(uint)), m_parent, SIGNAL(error(uint)) );
connect( this, SIGNAL(readDataReady(int)), m_parent, SIGNAL(readDataReady(int)) );
connect(this, SIGNAL(started()), m_parent, SIGNAL(started()));
connect(this, SIGNAL(finished()), m_parent, SIGNAL(finished()));
connect(this, SIGNAL(error(uint)), m_parent, SIGNAL(error(uint)));
connect(this, SIGNAL(readDataReady(int)),
m_parent, SIGNAL(readDataReady(int)));

// Start the threads if they haven't been started yet.
if( manager == NULL )
Expand Down Expand Up @@ -575,7 +576,6 @@ MythSystemUnix::MythSystemUnix(MythSystem *parent) :
}
}

// QBuffers may also need freeing
MythSystemUnix::~MythSystemUnix(void)
{
}
Expand Down
18 changes: 9 additions & 9 deletions mythtv/libs/libmythbase/system-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,38 +496,38 @@ MythSystemWindows::MythSystemWindows(MythSystem *parent) :
{
m_parent = parent;

connect( this, SIGNAL(started()), m_parent, SIGNAL(started()) );
connect( this, SIGNAL(finished()), m_parent, SIGNAL(finished()) );
connect( this, SIGNAL(error(uint)), m_parent, SIGNAL(error(uint)) );
connect( this, SIGNAL(readDataReady(int)), m_parent, SIGNAL(readDataReady(int)) );
connect(this, SIGNAL(started()), m_parent, SIGNAL(started()));
connect(this, SIGNAL(finished()), m_parent, SIGNAL(finished()));
connect(this, SIGNAL(error(uint)), m_parent, SIGNAL(error(uint)));
connect(this, SIGNAL(readDataReady(int)),
m_parent, SIGNAL(readDataReady(int)));

// Start the threads if they haven't been started yet.
if( manager == NULL )
if (manager == NULL)
{
manager = new MythSystemManager;
manager->start();
}

if( smanager == NULL )
if (smanager == NULL)
{
smanager = new MythSystemSignalManager;
smanager->start();
}

if( readThread == NULL )
if (readThread == NULL)
{
readThread = new MythSystemIOHandler(true);
readThread->start();
}

if( writeThread == NULL )
if (writeThread == NULL)
{
writeThread = new MythSystemIOHandler(false);
writeThread->start();
}
}

// QBuffers may also need freeing
MythSystemWindows::~MythSystemWindows(void)
{
}
Expand Down

0 comments on commit 31f09a8

Please sign in to comment.