diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-09-23 12:39:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-09-23 12:39:27 +0100 |
| commit | c2709fbe5438da124b2d493cb714a6c58720cf5b (patch) | |
| tree | 015607895cba76f9b8bcddf6fae72cb7c62e3cb3 /src/lib/server.cc | |
| parent | 365f830b4c65b2d872106a14f57d28cef4a179cd (diff) | |
Command-line option to specify servomatic_cli threads.
Diffstat (limited to 'src/lib/server.cc')
| -rw-r--r-- | src/lib/server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc index ff784db5a..a62763447 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -181,9 +181,9 @@ Server::worker_thread () } void -Server::run () +Server::run (int num_threads) { - int const num_threads = Config::instance()->num_local_encoding_threads (); + cout << "Server starting with " << num_threads << " threads.\n"; for (int i = 0; i < num_threads; ++i) { _worker_threads.push_back (new thread (bind (&Server::worker_thread, this))); |
