Thanks a lot, I will look into it. On Thu, Feb 13, 2020 at 2:17 PM Santiago Gimeno <[email protected]> wrote:
> Hello, > > You can do it by creating your own threads with their own uv_loop_t and > passing them the handles. You can find a similar scenario in > https://github.com/libuv/libuv/blob/v1.x/test/benchmark-multi-accept.c > > br > > El jue., 13 feb. 2020 a las 8:58, nilsocket (<[email protected]>) > escribió: > >> >> I was trying to handle reads in different thread, because I don't want to >> make main loop heavy(time-consuming, because of my work). >> >> I want to off-load serving requests to threads in thread pool, how can I >> achieve this? >> >> Or is it that, I can't off-load serving requests, if it contains any >> libuv functions inside it, like reading data from socket,...? >> If that is the case, then isn't it going to increase load on single >> thread (main-loop thread), all libuv read calls are going to happen from >> here? >> >> Is there any possibility, to off-load serving a request to one of the >> thread in thread-pool? >> >> Thank you. >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/libuv/709ffbe1-a2aa-49ee-a017-2368c31b2cd2%40googlegroups.com >> <https://groups.google.com/d/msgid/libuv/709ffbe1-a2aa-49ee-a017-2368c31b2cd2%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/libuv/CAAJY-XM%3DxTWy-yYfEQ9owRh5S4ChMv3__9GzSrjREtqafURsMw%40mail.gmail.com > <https://groups.google.com/d/msgid/libuv/CAAJY-XM%3DxTWy-yYfEQ9owRh5S4ChMv3__9GzSrjREtqafURsMw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Thank you -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/libuv/CAGkTAxsM1czDz%2BrpsKR%3DGGDKdNUbwnouYq9o2JP4Hm_mDk1KTg%40mail.gmail.com.
