History log of /libuv/src/unix/core.c (Results 176 – 200 of 299)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 339033af 06-Jan-2013 Ben Noordhuis

unix: use uv__hrtime() internally

This commit renames the various uv_hrtime() implementations to uv__hrtime().

Libuv uses the high-res timer internally in performance-critical code

unix: use uv__hrtime() internally

This commit renames the various uv_hrtime() implementations to uv__hrtime().

Libuv uses the high-res timer internally in performance-critical code paths.
Calling the non-public version avoids going through the PLT when libuv is
compiled as a shared object.

The exported uv_hrtime() now has a single definition in src/unix/core.c that
calls uv__hrtime().

A future optimization is to lift the uv__hrtime() declarations into header
files so they can be inlined at the call sites. Then again, linking with -flto
should accomplish the same thing.

show more ...

# 4650a597 24-Dec-2012 Saúl Ibarra Corretgé

unix: don't run loop when all handles are unref'd

# 0820be70 18-Dec-2012 Saúl Ibarra Corretgé

Implemented uv_run2

Allows for running the event loop in 3 modes:
* default: loop runs until the refcount drops to zero
* once: poll for events only once and block until one is h

Implemented uv_run2

Allows for running the event loop in 3 modes:
* default: loop runs until the refcount drops to zero
* once: poll for events only once and block until one is handled
* nowait: poll for events only once but don't block if there are
no pending events

show more ...

Revision tags: node-v0.9.4
# e079a99a 13-Dec-2012 Ben Noordhuis

unix: fix event loop stall

Fix a rather obscure bug where the event loop stalls when an I/O watcher is
stopped while an artificial event, generated with uv__io_feed(), is pending.

Revision tags: node-v0.8.17
# 4a69c4bb 28-Nov-2012 Ben Noordhuis

unix: change uv_backend_timeout() prototype

* change return value to signed int
* constify loop argument

# 09a7f85b 26-Nov-2012 Fedor Indutny

unix: add uv_backend_fd() and uv_backend_timeout()

This can be used in conjuction with uv_run_once() to poll in one thread and run
the event loop's event callbacks in another.

U

unix: add uv_backend_fd() and uv_backend_timeout()

This can be used in conjuction with uv_run_once() to poll in one thread and run
the event loop's event callbacks in another.

Useful for embedding libuv's event loop in another event loop.

show more ...

# 90271e1a 22-Nov-2012 Ben Noordhuis

darwin, freebsd: set SO_NOSIGPIPE on sockets

Suppresses delivery of SIGPIPE signals when the remote end of the socket has
gone away.

# 65bb6f06 15-Nov-2012 Ben Noordhuis

unix: rename UV__IO_* constants

Revision tags: node-v0.8.15, node-v0.9.3, node-v0.8.12, node-v0.8.10, node-v0.9.2, node-v0.8.9, node-v0.9.1
# 1282d648 22-Aug-2012 Ben Noordhuis

unix: remove dependency on libev

# 1e32cb01 16-Oct-2012 Bert Belder

unix: support signal handlers outside the main loop

# 39d574dc 16-Oct-2012 Bert Belder

unix: make it possible to delay close callbacks

# 7ac23ee0 28-Sep-2012 Ben Noordhuis

unix: move getaddrinfo code to getaddrinfo.c

# b7047d67 12-Sep-2012 Saúl Ibarra Corretgé

unix: remove __read_mostly macro

It creates trouble with llvm-gcc on OS X.

# b12b6498 21-Aug-2012 Ben Noordhuis

darwin, freebsd: use ioctl(FIOCLEX) and ioctl(FIONBIO)

Set the non-blocking and close-on-exec flags with ioctl() instead of fcntl(),
it's about 10-25% faster.

Stick with fcntl()

darwin, freebsd: use ioctl(FIOCLEX) and ioctl(FIONBIO)

Set the non-blocking and close-on-exec flags with ioctl() instead of fcntl(),
it's about 10-25% faster.

Stick with fcntl() on Solaris. ioctl(FIONBIO) works but is twice as slow as
fcntl(O_NONBLOCK). ioctl(FIOCLEX) doesn't raise an error but doesn't actually
work either.

show more ...

# 6545e9bd 20-Aug-2012 Ben Noordhuis

linux: tag no_accept4 __read_mostly

Revision tags: node-v0.8.8, node-v0.8.7, node-v0.8.6, node-v0.8.5, node-v0.6.21, node-v0.8.3
# ee50db6e 10-Jul-2012 Ben Noordhuis

unix, windows: preliminary signal handler support

* a no-op on Windows for now
* only supports the main loop on UNIX (again, for now)

# 9f7cdb20 29-Jul-2012 Ben Noordhuis

unix: add relaxed accept() setting

Mitigates unfair scheduling in multi-process setups that share a single listen
socket across multiple processes.

# be103243 29-Jul-2012 Ben Noordhuis

Merge branch 'v0.8'


Revision tags: node-v0.9.0, node-v0.8.2
# 889ab216 01-Jul-2012 Ben Noordhuis

unix: fix 'zero handles, one request' busy loop

Fixes #484.

# b779a0db 29-Jun-2012 Ben Noordhuis

Merge branch 'v0.8'


# f6a02fbe 29-Jun-2012 Ben Noordhuis

linux: don't use accept4() syscall after ENOSYS

Repeatedly calling the syscall when it's not supported has a small but
measurable performance impact.

Besides, it's a silly thing

linux: don't use accept4() syscall after ENOSYS

Repeatedly calling the syscall when it's not supported has a small but
measurable performance impact.

Besides, it's a silly thing to do.

show more ...

Revision tags: node-v0.8.1, node-v0.8.0
# 0fde1082 24-Jun-2012 Ben Noordhuis

linux: set close-on-exec flag with ioctl(FIOCLEX)

ioctl(FIOCLEX) is 25% faster than fcntl(F_SETFD) on a stock 2.6.32 kernel.

# e21cdf1e 23-Jun-2012 Ben Noordhuis

unix: malloc only once in uv_getaddrinfo()

# f01e9d70 22-Jun-2012 Ben Noordhuis

unix: clarify that uv_getaddrinfo_t is a req

Revision tags: node-v0.7.12, node-v0.7.11
# cc7c8542 14-Jun-2012 Ben Noordhuis

unix, windows: add stat() based file watcher

Monitors a file path for changes. Supersedes ev_stat.

12345678910>>...12