URL:
<http://gna.org/bugs/?11238>
Summary: network::manager min_threads=0 doesn't start a
worker thread in contrary to the documentation of the constructor
Project: Battle for Wesnoth
Submitted by: j_daniel
Submitted on: Monday 03/10/2008 at 10:13
Category: Bug
Severity: 2 - Minor
Priority: 3 - Low
Item Group: Networking
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk
Operating System: Linux
_______________________________________________________
Details:
// min_threads is the maximum number we allow to wait,
// if more threads attempt to wait, they will die.
// If min_threads == 0 no thread will ever be destroyed,
// and we will stay at the max number of threads ever needed.
// max_threads is the overall max number of helper threads.
// If we have that many threads already running, we will never create more.
// If max_threads == 0 we will always create a thread if we need it.
struct manager {
explicit manager(size_t min_threads = 1,size_t max_threads = 0);
This is quite confusing because it doesn't create a thread with min_threads =
0
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11238>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs