Replies: 2 comments 6 replies
-
Hello @dvhh, You need to use a framework or language feature for this. For example, on node this is done by libuv (I think), in C with |
Beta Was this translation helpful? Give feedback.
-
Hello @jcupitt, Mainly targeting C, would like to write a module for nginx that is using libvips, was able to put up some prototype and am of course looking at the wrong places for potential optimizations :). In a more serious fashion, I would like the module to yield to the event loop once the operation has been started, and leave it to the event loop to check for operation completion. maybe I have been looking at the wrong place for the nodejs async code, I will look deeper into the problem, although some pointers might certainly help a lot. |
Beta Was this translation helpful? Give feedback.
-
Hello,
As far as I understand, libvips operations are running on a thread pool, and while operation are fast, it might leave the calling thread pending.
Is there a way to call operation asynchronously and check completion status via a flag (preferable) or callback.
I have read the "asynchronous" implementation for the php and nodejs library and don't think they are suitable for my need. And I don't think my documentation combing skill might be good enough for finding what I want.
Beta Was this translation helpful? Give feedback.
All reactions