зеркало из https://github.com/mozilla/pjs.git
Bug 483799. Avoid std::max in Windows CE. r=jwalden
This commit is contained in:
Родитель
b8aa0fa4b1
Коммит
87200a6e6a
|
@ -56,6 +56,7 @@
|
|||
#include "prio.h"
|
||||
#include "prnetdb.h"
|
||||
#include "prtpool.h"
|
||||
#include "prtypes.h"
|
||||
#include "nss.h"
|
||||
#include "pk11func.h"
|
||||
#include "key.h"
|
||||
|
@ -859,10 +860,8 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
// create a thread pool to handle connections
|
||||
threads = PR_CreateThreadPool(std::max<PRInt32>(INITIAL_THREADS,
|
||||
servers.size()*2),
|
||||
std::max<PRInt32>(MAX_THREADS,
|
||||
servers.size()*2),
|
||||
threads = PR_CreateThreadPool(PR_MAX(INITIAL_THREADS, servers.size()*2),
|
||||
PR_MAX(MAX_THREADS, servers.size()*2),
|
||||
DEFAULT_STACKSIZE);
|
||||
if (!threads) {
|
||||
fprintf(stderr, "Failed to create thread pool\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче