Home
last modified time | relevance | path

Searched refs:which (Results 1 – 25 of 38) sorted by relevance

12

/libuv/src/unix/
H A Dopenbsd.c51 int which[] = {CTL_VM, VM_LOADAVG}; in uv_loadavg() local
53 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
118 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
130 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
174 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
190 int which[] = {CTL_HW,HW_MODEL}; in uv_cpu_info() local
197 if (sysctl(which, ARRAY_SIZE(which), &model, &size, NULL, 0)) in uv_cpu_info()
200 which[1] = HW_NCPUONLINE; in uv_cpu_info()
202 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) in uv_cpu_info()
212 which[1] = HW_CPUSPEED; in uv_cpu_info()
[all …]
H A Dnetbsd.c56 int which[] = {CTL_VM, VM_LOADAVG}; in uv_loadavg() local
58 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) == -1) return; in uv_loadavg()
103 int which[] = {CTL_VM, VM_UVMEXP}; in uv_get_free_memory() local
105 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
115 int which[] = {CTL_HW, HW_PHYSMEM64}; in uv_get_total_memory() local
118 int which[] = {CTL_HW, HW_PHYSMEM}; in uv_get_total_memory()
122 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
173 static int which[] = {CTL_KERN, KERN_BOOTTIME}; in uv_uptime() local
175 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
H A Ddarwin.c113 int which[] = {CTL_HW, HW_MEMSIZE}; in uv_get_total_memory() local
116 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
136 int which[] = {CTL_VM, VM_LOADAVG}; in uv_loadavg() local
138 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
171 static int which[] = {CTL_KERN, KERN_BOOTTIME}; in uv_uptime() local
173 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
H A Dfreebsd.c108 int which[] = {CTL_HW, HW_PHYSMEM}; in uv_get_total_memory() local
112 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
132 int which[] = {CTL_VM, VM_LOADAVG}; in uv_loadavg() local
134 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
H A Dprocess.c428 int which[] = {CTL_KERN, KERN_OSRELEASE}; in uv__spawn_init_can_use_setsid() local
436 if (sysctl(which, ARRAY_SIZE(which), buf, &len, NULL, 0)) in uv__spawn_init_can_use_setsid()
/libuv/docs/src/
H A Dmigration_010_100.rst15 In libuv 0.10 (and previous versions), loops were created with `uv_loop_new`, which
17 which destroyed the loop and freed the memory. Starting with 1.0, those are deprecated
48 to fetch the error code, which was a positive number.
50 In 1.0, functions and status parameters contain the actual error code, which is 0 for success, or
57 ... assume 'server' is a TCP server which is already listening
68 ... assume 'server' is a TCP server which is already listening
78 In libuv 0.10 Unix used a threadpool which defaulted to 4 threads, while Windows used the
79 `QueueUserWorkItem` API, which uses a Windows internal threadpool, which defaults to 512
98 In libuv 1.0 a pointer to a buffer is passed to the callback, which the user
191 data on a pipe, which could also result in the reception of handles over it. The callback
H A Dthreadpool.rst7 libuv provides a threadpool which can be used to run user code and get notified
27 Note that even though a global thread pool which is shared across all events
40 Callback passed to :c:func:`uv_queue_work` which will be run on the thread
45 Callback passed to :c:func:`uv_queue_work` which will be called on the loop
66 Initializes a work request which will run the given `work_cb` in a thread
H A Ddns.rst19 Callback which will be called with the getaddrinfo request result once
29 Callback which will be called with the getnameinfo request result once
83 which is either:
91 in which case the request will run **synchronously**.
106 in which case the request will run **synchronously**.
H A Dthreading.rst93 Sets the specified thread's affinity to cpumask, which is specified in
98 the bytes in cpumask to a bitmask and uses SetThreadAffinityMask() which
124 Gets the CPU number on which the calling thread is running.
166 same guard will block all callers except one (it's unspecified which one).
221 at which function is called.
223 absolute system time at which the wait expires. If the current system clock time
H A Ddesign.rst7 libuv is cross-platform support library which was originally written for `Node.js`_. It's designed
49 I/O is performed on non-blocking sockets which are polled using the best mechanism available
52 which have been added to the poller and callbacks will be fired indicating socket conditions
73 most part. There are cases, however, in which calling such a callback is deferred for the next
132 libuv currently uses a global thread pool on which all loops can queue work. 3 types of
H A Dpipe.rst39 this pipe will be used for handle passing between processes (which may
82 flag is specified, in which case an ``UV_EINVAL`` error is returned.
112 flag is specified, in which case an ``UV_EINVAL`` error is returned.
128 Get the name of the Unix domain socket or the named pipe to which the handle
H A Dstream.rst45 `nread` might be 0, which does *not* indicate an error or EOF. This
166 /* Logic which handles the write result */
197 handle on Windows, which is a server or a connection (listening or
235 operation will still be reported through a callback which is made
H A Dtcp.rst78 Enable `TCP_NODELAY`, which disables Nagle's algorithm.
101 connections (which is why it is enabled by default) but may lead to uneven
137 Get the current address to which the handle is bound. `name` must point to
H A Dfs_event.rst41 Callback passed to :c:func:`uv_fs_event_start` which will be called repeatedly
111 Start the handle with the given callback, which will watch the specified
H A Dfs_poll.rst21 Callback passed to :c:func:`uv_fs_poll_start` which will be called repeatedly
/libuv/docs/src/guide/
H A Dutilities.rst4 This chapter catalogues tools and techniques which are useful for common tasks.
5 The `libev man page`_ already covers some patterns which can be adopted to
39 which will take effect **when possible**. If this function is called from
77 which runs every X seconds, or your network service might send a heartbeat to
109 event loop will pause (**block**), which means your progress bar will freeze
123 for a brief amount as the loop deals with the input data, after which it will
189 We then free the baton which also frees the watcher.
317 plugin system which does nothing except print the name of the plugin.
403 Here is a simple example which prints white text on a red background:
411 The final TTY helper is ``uv_tty_get_winsize()`` which is used to get the
[all …]
H A Deventloops.rst7 Qt's event loop driving a libuv backend which does intensive system level
29 within the event loop, which is why invoking ``uv_stop()`` in them will still
33 would be set. This causes ``uv_backend_timeout()`` to return ``0``, which is
H A Dbasics.rst40 nothing. For programs which require high performance this is a major roadblock
46 which actually needs the CPU.
48 The approach followed by libuv uses another style, which is the **asynchronous,
86 nothing, except start a loop which will exit immediately.
127 Initialization functions or synchronous functions which may fail return a negative number on error.…
134 …ad`` is less than 0, there was an error (UV_EOF is the end of file error, which you may want to ha…
203 Callbacks are functions which are called by libuv whenever an event the watcher
229 handles and requests have a ``void* data`` member which you can set to the
H A Dthreads.rst6 which processors do their jobs. Threads are therefore mighty useful sometimes, even
52 The second parameter is the function which will serve as the entry point for
53 the thread, the last parameter is a ``void *`` argument which can be used to pass
64 Unlike ``pthread_join()`` which allows the target thread to pass back a value to
101 The default BSD mutex implementation will raise an error if a thread which has
196 make sure that no function which runs periodically in the loop thread blocks
201 a routine which performs I/O under the hood) to be used with threads if you
355 After this example, which showed the abuse of the ``data`` field, bnoordhuis_
370 which binds a third party library. It may go something like this:
391 4. The async callback, invoked in the main loop thread, which is the v8 thread,
H A Dprocesses.rst54 which caused the exit.
99 * ``UV_PROCESS_DETACHED`` - Starts the child process in a new session, which
106 child processes which are independent of the parent so that the parent exiting
130 which accepts the ``uv_process_t`` watcher as the first argument, rather than
178 which is:
188 ``uv_stdio_container_t``, which is:
232 that every client is sent ten ticks after which that connection is closed.
296 which clients can interact with it.
311 We name the socket ``echo.sock`` which means it will be created in the local
317 A client which wants to connect to a domain socket will use::
[all …]
H A Dfilesystem.rst72 In the case of a read call, you should pass an *initialized* buffer which will
79 ``uv_fs_close()`` call is performed synchronously. *Usually tasks which are
191 What does require management is the actual bytes, which have to be allocated
234 scheme. For example, node.js uses its own slab allocator which associates
238 might be EOF, in which case we close all the streams, using the generic close
239 function ``uv_close()`` which deals with the handle based on its internal type.
286 difficult. To demonstrate, I'm going to build a simple utility which runs
328 is the file on which the watch was set.
330 file which was changed. Only non-``null`` on Linux and Windows. May be ``null``
H A Dabout.rst13 <http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod>`_ about libev which
/libuv/
H A DLICENSE-docs73 and in which the Licensed Material is translated, altered,
104 or other material to which the Licensor applied this Public
108 terms and conditions of this Public License, which are limited to
248 which You Share the Licensed Material. For example, it may be
272 contents in a database in which You have Sui Generis Database
273 Rights, then the database in which You have Sui Generis Database
H A DSUPPORTED_PLATFORMS.md46 file inside ``src/unix/`` unless it's already done in a common file, in which
/libuv/m4/
H A Dax_pthread.m4128 # which indicates that we try without any flags at all, and "pthread-config"
129 # which is a program returning the flags for the Pth emulation library.
145 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
276 # C build frameworks function, which is that the same flags used in

Completed in 51 milliseconds

12