There should be a public API for setting/getting the threadpool size. Is that hard to achieve?
-- Iñaki Baz Castillo <[email protected]> On Jul 1, 2014 10:39 AM, "Saúl Ibarra Corretgé" <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > > > Well, not really. I unified the threadpools a few days ago, before > > that we used QueueUserWorkItem Windows API which basically creates > > a new thread each time, IIRC. > > > > > >> Well yes I am using exactly same libuv (and that's what its > >> expected here in my app) Can we not fix it with having > >> QueueUserWorkItem ? > > > > Heh, no way. We unified the threadpool implementations for a reason. > If you want to use threads you can create your own with > uv_thread_create and do the queuing yourself. > > Alternatively, you can use the UV_THREADPOOL_SIZE environment variable > to set the threadpool size, it's capped at 128. > > - -- > Saúl Ibarra Corretgé > bettercallsaghul.com > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: Using GnuPG with Icedove - http://www.enigmail.net/ > > iQIcBAEBAgAGBQJTsnN7AAoJEEEOVVOum8BZOK8P/2hKkLklGV/AtWyttjtrRfUs > Vt+twVS0Qxu1gmmA09QdCLSfmkLV3dTyDKsSRBLJ69KQE2Np5vyrzSUoVkgCWvlS > ++8dVdNpehnG65MCWMDPHHcOAsLkxmxchiNrZ5h+yOjgo2SYhY6Y+QTckC2v67eR > rpqge9/CmoERT3MhTXmVq8R+vS/R9rigcdD2+psFY8oZRIySelDG/9rw3J5ze+8J > 6rvJOHSUpEHTzTZv5LHIUMNBY2/w/M75KCWfYQ5LfjaI9h6BwOrGdkkx5m4pdKuy > pXomrksuPbywZTo3nb2n9li1J+tl/onB0RmZFYlEhXxZq5Sqs14jNZgpDQdb/SJX > TpNKgRuKvEeHhVbX/gM0OVNTYBbjycwRN04y2xEG9PV7GFt4KpGNdgDlq3ZWg4vc > x9vCG0w7nT3kwNqeJo6vaT8KB1ehOG0ETPBSf4EOf7uhxH/rUKBjKOm8vBJSkDTg > tARIWVQDzQz8zc9DmIkIGKmULmaDrIsksUOXJxgYBIwJy9UHOWNwkaHvlDlCyDwn > uJ/QqmiyiX0T8q08Pq5OpjOIaXjhMUL4bDMFcAG/6ghjmmxApGZVOxWl62KW95V4 > LUOyydaxBeV1AdMWFhxWoTdOHzVYMgaId31cY1+EvhhGscMyBOqBqSWUxgP/WZQ4 > ufhfatSMP1BBF/Q4ry+I > =+/Yr > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "libuv" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/libuv. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
