gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9972: when only using one port, fo


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9972: when only using one port, force single threaded mode.
Date: Wed, 04 Feb 2009 17:42:18 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9972
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2009-02-04 17:42:18 -0700
message:
  when only using one port, force single threaded mode.
modified:
  cygnal/cygnal.cpp
=== modified file 'cygnal/cygnal.cpp'
--- a/cygnal/cygnal.cpp 2009-02-04 21:21:48 +0000
+++ b/cygnal/cygnal.cpp 2009-02-05 00:42:18 +0000
@@ -261,7 +261,7 @@
          case 'n':
              netdebug = true;
              break;
-         case 'o':
+         case 'o':     
              only_port = parser.argument<int>(i);
              break;
          case 'd':
@@ -272,6 +272,11 @@
              log_error (_("Extraneous argument: %s"), 
parser.argument(i).c_str());
         }
     }
+
+    // If a port is specified, we only want to run single threaded.
+    if (only_port) {
+       crcfile.setThreadingFlag(false);
+    }
     
     // Trap ^C (SIGINT) so we can kill all the threads
     act1.sa_handler = cntrlc_handler;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]