r188: *** empty log message ***
[ctsim.git] / src / ctsim.cpp
index 385fbee15445f120343b24bf7830efb62d649474..a3aefb58a3d11c9ece7728d61cd15fd03e557c0e 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ctsim.cpp,v 1.10 2000/08/31 08:38:58 kevin Exp $
+**  $Id: ctsim.cpp,v 1.11 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
@@ -53,7 +53,7 @@
 #include <getopt.h>
 #endif
 
-static const char* rcsindent = "$Id: ctsim.cpp,v 1.10 2000/08/31 08:38:58 kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.11 2000/09/02 16:40:36 kevin Exp $";
 
 class CTSimApp* theApp = NULL;
 
@@ -72,9 +72,21 @@ CTSimApp::CTSimApp(void)
     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)
 {
+#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);