*** empty log message ***

This commit is contained in:
Dustin Barnard 2007-06-25 16:16:20 +00:00
parent dba5cd0e7c
commit 483896eb49
3 changed files with 8 additions and 5 deletions

View File

@ -171,7 +171,7 @@ DirectD::wait_for_servers(int count, int timeout_ms) {
return true;
}
// The timeout is a rough estimate, we may wait slightly longer.
const wait_ms=200;
const int wait_ms=200;
int cycles=timeout_ms/wait_ms;
while (cycles--) {
check_for_new_clients();
@ -198,7 +198,8 @@ DirectD::wait_for_servers(int count, int timeout_ms) {
}
// Yield the timeslice before we poll again.
PR_Sleep(PR_MillisecondsToInterval(wait_ms));
//PR_Sleep(PR_MillisecondsToInterval(wait_ms));
Sleep(wait_ms);
}
// We've waited long enough, assume they're not going to be
// ready in the time we want them:

View File

@ -17,13 +17,14 @@
////////////////////////////////////////////////////////////////////
#include <process.h>
#include <Windows.h>
#include "pandabase.h"
#include "directsymbols.h"
#include "queuedConnectionManager.h"
#include "queuedConnectionReader.h"
#include "connectionWriter.h"
#include "queuedConnectionListener.h"
#include <windows.h>
#ifdef CPPPARSER //[
// hack for interrogate

View File

@ -68,7 +68,7 @@ DirectDServer::read_command(string& cmd) {
ifstream f;
f.open("directdCommand", ios::in | ios::binary);
stringstream ss;
const buf_size=512;
const int buf_size=512;
char buf[buf_size];
f.getline(buf, buf_size);
if (f.gcount() > 0) {
@ -95,7 +95,8 @@ DirectDServer::run_server(int port) {
check_for_datagrams();
// Yield the timeslice before we poll again.
PR_Sleep(PR_MillisecondsToInterval(200));
//PR_Sleep(PR_MillisecondsToInterval(200));
Sleep(200);
}
}