History log of /libuv/src/uv-common.h (Results 76 – 94 of 94)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 58ba2d86 22-May-2012 Bert Belder

Move shared c-ares glue code from uv-common to cares.c

# c06edd4c 21-May-2012 Bert Belder

windows, unix: share c-ares glue code

# 9efa8b35 17-May-2012 Ben Noordhuis

unix, windows: rework reference counting scheme

This commit changes how the event loop determines if it needs to stay alive.

Previously, an internal counter was increased whenever a

unix, windows: rework reference counting scheme

This commit changes how the event loop determines if it needs to stay alive.

Previously, an internal counter was increased whenever a handle got created
and decreased again when the handle was closed.

While conceptually simple, it turned out hard to work with: you often want
to keep the event loop alive only if the handle is actually doing something.
Stopped or inactive handles were a frequent source of hanging event loops.

That's why this commit changes the reference counting scheme to a model where
a handle only references the event loop when it's active. 'Active' means
different things for different handle types, e.g.:

* timers: ticking
* sockets: reading, writing or listening
* processes: always active (for now, subject to change)
* idle, check, prepare: only active when started

This commit also changes how the uv_ref() and uv_unref() functions work: they
now operate on the level of individual handles, not the whole event loop.

The Windows implementation was done by Bert Belder.

show more ...

Revision tags: node-v0.6.18, node-v0.6.16, node-v0.6.17, node-v0.7.8, node-v0.6.15
# 42095c85 03-Apr-2012 Ben Noordhuis

Remove UV_ARES_TASK_PRIVATE_FIELDS.

It's only used internally, it doesn't have to be part of a public header file.

Revision tags: node-v0.6.14
# dfda5009 15-Mar-2012 Ben Noordhuis

unix, win: store ares handles in a binary tree

Store the uv_ares_task_t handles in a red-black tree, not a linked list.

Fixes #72.

Revision tags: node-v0.6.13, node-v0.7.6, node-v0.6.12
# 09c722e7 22-Feb-2012 Ben Noordhuis

common: make uv__set_*_error() return -1

So you can do `if (errno) return uv__set_sys_error(loop, errno);`.

Revision tags: node-v0.6.11, node-v0.7.4, node-v0.6.10, node-v0.7.2, node-v0.6.9, node-v0.7.1
# fbbc0854 18-Jan-2012 Ben Noordhuis

Rename COUNTOF() to ARRAY_SIZE().

Consistent with Node, it has an ARRAY_SIZE() macro but not COUNTOF().

Revision tags: node-v0.7.0, node-v0.6.8, node-v0.6.7, node-v0.6.6, node-v0.6.4, node-v0.6.3, node-v0.6.2, node-v0.6.1
# b7da0a69 08-Nov-2011 Ryan Dahl

Add uv__new_artificial_error()

Revision tags: node-v0.6.0
# 74b49e82 02-Nov-2011 Igor Zinkovsky

uv_kill

# c985ea4b 28-Oct-2011 Bert Belder

Add uv__new_sys_error

Revision tags: node-v0.5.10, node-v0.5.9, node-v0.5.8
# 4c329060 28-Sep-2011 Erick Tryzelaar

unix,win: Start unifying shared bind code.

# 85368e8d 28-Sep-2011 Erick Tryzelaar

unix,win: Start unifying shared tcp connect code.

# 23796d20 27-Sep-2011 Erick Tryzelaar

Fixes #76. Unify OS error reporting

As a nice fringe benefit, this also shaves a word
off of a windows TCP handle by replacing "uv_err_t
bind_error" with "int bind_error".

Revision tags: node-v0.5.7, node-v0.5.6
# cfa1423f 09-Sep-2011 Igor Zinkovsky

fix fs_file_noent on windows

# 58ef43ee 05-Sep-2011 Bert Belder

win: use win32 api for file reading and writing

# 56dcaf9b 31-Aug-2011 Ryan Dahl

unix: multiplicity

# 3be275ba 29-Aug-2011 Ryan Dahl

Begin implementation of UNIX uv_fs_ functions

Adding this incomplete work now to ease rebase troubles later as it moves
the functions to src/unix/fs.c and introduces src/unix/internal.h.

Revision tags: node-v0.5.5, node-v0.5.4, node-v0.5.2, node-v0.5.1
# f5ff8694 13-Jul-2011 Igor Zinkovsky

allocate windows pipe handles on demand

# ce8ff303 06-Jul-2011 Ryan Dahl

src/ and include/ directories

Helps #71 but does not update the MSVC files.

1234