Permalink
Browse files

Formatting changes. Nothing to see here, move along.

  • Loading branch information...
Beirdo committed Jul 8, 2012
1 parent 24da25f commit 31f09a84b2f2fe9e4be80f00e8737370bec28678
Showing with 18 additions and 18 deletions.
  1. +9 −9 mythtv/libs/libmythbase/system-unix.cpp
  2. +9 −9 mythtv/libs/libmythbase/system-windows.cpp
@@ -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;
@@ -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());
@@ -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 )
@@ -575,7 +576,6 @@ MythSystemUnix::MythSystemUnix(MythSystem *parent) :
}
}
-// QBuffers may also need freeing
MythSystemUnix::~MythSystemUnix(void)
{
}
@@ -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)
{
}

0 comments on commit 31f09a8

Please sign in to comment.