libuv Questions

1

What does process.nextTick exactly mean ? Does nextTick mean, after callback queue pop for one element in the current phase ? Or before moving to the next phase after executing all callbacks in th...
Douce asked 14/5, 2016 at 19:50

1

Solved

I've been doing a lot of research into the core of Node.js lately, and I have some questions about the inner workings of the Node platform. As I understand it, Node.js works like this: Node has ...
Hunnish asked 8/4, 2016 at 4:11

1

Solved

This is a conceptual query regarding system level optimisation. My understanding by reading the NodeJS Documentation is that pipes are handy to perform flow control on streams. Background: I have ...
Cardigan asked 31/1, 2016 at 6:6

3

Solved

I'm trying to run an unmodified Web Api application created by yo aspnet. I'm getting this error: System.EntryPointNotFoundException: uv_loop_size at (wrapper managed-to-native) Microsoft.AspNet...
Hilton asked 21/11, 2015 at 19:2

2

I am not able to find out whether libuv in node.js uses multi core cpus or it runs all of its threads in on single core only using time slicing? As node.js is single threaded but libuv has its own ...
Hannover asked 20/9, 2015 at 12:0

2

After compiling, I am trying to run libuv sample program: #include <stdio.h> #include <uv.h> int main() { uv_loop_t *loop = uv_loop_new(); printf("Now quitting.\n"); uv_run(loop,...
Attitudinarian asked 15/9, 2013 at 19:12

1

Solved

After reading this great answer about Node's thread nature, I started to play with UV_THREADPOOL_SIZE system variable to change the size of thread pool, and I found something interesting: When I s...
Metathesis asked 10/9, 2015 at 15:24

3

Solved

I'm trying to call a registered JS function when a c++ callback is called, but I'm getting a segfault for what I assume is a scoping issue. Handle<Value> addEventListener( const Arguments&...
Coarse asked 11/12, 2012 at 19:6

2

In libuv, you can end up tying up the worker threads with too much work or buggy code. Is there a simple function that can check the health of the worker threads or thread queue? It doesn't have to...
Tripoli asked 12/12, 2013 at 23:25

3

Solved

I'm trying to create a class to abstract some basic behavior of libuv's networking functions. #define TCP_BACKLOG 256 class _tcp { uv_tcp_t* tcp = NULL; public: ~_tcp() { delete tcp; } void li...
Noleta asked 12/11, 2014 at 18:35

2

I am really confused between libev and libuv. Is libuv just a wrapper on libev on POSIX systems? If not where does it differ?
Burbank asked 7/8, 2014 at 5:3

1

For example i have 2 threads. I want to stop server from main thread (Thread 1). Thread 1: main program Thread 2: TcpServer From libuv library: /* * This function will stop the event loop by f...
Nyssa asked 11/3, 2014 at 15:23

2

Solved

In the libuv source, I found this code: /* The if statement lets the compiler compile it to a conditional store. * Avoids dirtying a cache line. */ if (loop->stop_flag != 0) loop->stop_...
Lymphosarcoma asked 28/3, 2014 at 15:28

2

Solved

I just learned that Node.js crown jewel libuv uses blocking system calls for file operations. The asynchronous behavior is implemented with threads! That raises two questions (I only care about Uni...
Grande asked 17/11, 2013 at 14:51

1

Solved

I am evaluating libuv as a library for a C/c++ server that I am writing. The protocol is length prefixed so as soon as I can read a 32 bit integer from the stream I should be able to tell what size...
Tani asked 7/10, 2013 at 1:55

2

Solved

I'm using libuv. I've read http://nikhilm.github.com/uvbook/processes.html and still cannot work out how to capture the stdout of a child process so that it is available in the parent (but not in p...
Diagnose asked 7/2, 2013 at 12:48

1

Solved

When running an event loop in libuv using the uv_run function, there's a "mode" parameter that is used with the following values: UV_RUN_DEFAULT UV_RUN_ONCE UV_RUN_NOWAIT The first two are obvio...
Zebapda asked 14/6, 2013 at 4:1

2

Solved

I am currently rewriting the server side of a very old mmorpg, and I was looking for a good opensource network library to use with C/C++. As the client already exists, I can't use any library that...
Stage asked 28/4, 2013 at 23:20

2

Solved

I have learned that node.js use libeio internally to perform async file I/O, with thread pool, on *nix platform, am I right? What about async network I/O? Is it done by libev? Is there also a thr...
Ordure asked 20/3, 2013 at 14:36

1

Solved

I have created a new thread dedicated to a libuv run loop. The thread function looks something like this: void thread_function() { uv_loop_t *loop = uv_loop_new(); uv_ref( loop ); uv_run( loop ...
Bryna asked 12/12, 2012 at 11:41

1

Solved

I was wondering how to achieve async file io in qt? Is this even achievable in vanilla qt or would someone need to use another library (libuv for example) to achieve something like this? I was look...
Tarah asked 3/12, 2012 at 5:48

1

Solved

I am trying to write a nodejs bindings for a C++ library and I seem to have hit a roadblock. I am working on trying to make all the calls to the C++ library asynchronous and thats why I am using l...
Eager asked 20/8, 2012 at 9:28

1

Solved

I have an application which uses libuv library. it runs default loop: uv_run(uv_default_loop()); How can the application be gracefully exited in case of a failure? Currently I am doing it like i...
Wedurn asked 31/1, 2012 at 8:33

© 2022 - 2024 — McMap. All rights reserved.