[7270] Apply mangos code style.

This commit is contained in:
VladimirMangos 2009-02-12 15:03:44 +03:00
parent 7c67848b48
commit 671a942d14
2 changed files with 67 additions and 65 deletions

View file

@ -125,8 +125,7 @@ public:
loopCounter = 0;
}
void
checkping ()
void checkping ()
{
// ping if need
if ((++loopCounter) == numLoops)
@ -139,8 +138,7 @@ public:
}
}
void
run (void)
void run ()
{
SocketHandler h;
@ -170,18 +168,22 @@ public:
// if use ra spend time waiting for io, if not use ra ,just sleep
if (usera)
{
while (!World::IsStopped())
{
h.Select (0, socketSelecttime);
checkping ();
}
}
else
{
while (!World::IsStopped())
{
ZThread::Thread::sleep (static_cast<unsigned long> (socketSelecttime / 1000));
checkping ();
}
}
}
};
Master::Master()

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7269"
#define REVISION_NR "7270"
#endif // __REVISION_NR_H__