James C. (Jamie) Davis
James C. (Jamie) Davis
Can you be a little more specific in what you mean? On Sun, Mar 1, 2020, 8:03 AM meixi1203 wrote: > I As the title, > > — > You...
Can you be more specific about your use case?
If this is still a problem for you... Have you tried running your application under `valgrind`? Often helpful for diagnosing memory errors.
@awakecoding Cancelling work that has been assigned to a worker will become possible from the embedder side if [libuv #1726](https://github.com/libuv/libuv/pull/1726) gets traction. However, depending on the work being performed, cancellation...
I am not sure I understand your question. Are you asking about the implementation of libuv, or how to use it to achieve a certain goal, or something else?
This is not a super polished response. I'm hoping it's enough to help you get started and reach a better understanding of the code. > (1) Who put callback function...
In `threadpool.c`, the `worker` function (thread) issues `uv_async_send(&w->loop->wq_async)` whenever it completes work. This wakes up the event loop, which calls the async handler's callback from the event loop. This callback...
> At what part of nodejs source code, was the deferred callback function inserted into pending_queue? and how? See `node/lib/fs.js` and `node/lib/internal/fs/read_file_context.js`. There are a series of stages (stat, open,...
Your steps sound OK. Nice sleuthing. > OK ! This is tooo long process. Indeed. > How is the callback function of fs.readFile( filename, callback ) inserted into pending_queue ?...
Have you tried it with a non-`NULL` `uv_loop_t`?