projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r188: *** empty log message ***
[ctsim.git]
/
src
/
ctsim.cpp
diff --git
a/src/ctsim.cpp
b/src/ctsim.cpp
index 385fbee15445f120343b24bf7830efb62d649474..a3aefb58a3d11c9ece7728d61cd15fd03e557c0e 100644
(file)
--- a/
src/ctsim.cpp
+++ b/
src/ctsim.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.1
0 2000/08/31 08:38:58
kevin Exp $
+** $Id: ctsim.cpp,v 1.1
1 2000/09/02 16:40:36
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-53,7
+53,7
@@
#include <getopt.h>
#endif
#include <getopt.h>
#endif
-static const char* rcsindent = "$Id: ctsim.cpp,v 1.1
0 2000/08/31 08:38:58
kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.1
1 2000/09/02 16:40:36
kevin Exp $";
class CTSimApp* theApp = NULL;
class CTSimApp* theApp = NULL;
@@
-72,9
+72,21
@@
CTSimApp::CTSimApp(void)
theApp = this;
}
theApp = this;
}
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+
bool
CTSimApp::OnInit(void)
{
bool
CTSimApp::OnInit(void)
{
+#ifdef HAVE_SETPRIORITY
+ setpriority (PRIO_PROCESS, 0, 15); // set to low scheduling priority
+#endif
+
// process options
while (1) {
int c = getopt_long (argc, argv, "", ctsimOptions, NULL);
// process options
while (1) {
int c = getopt_long (argc, argv, "", ctsimOptions, NULL);