5b632858 | 06-Jan-2013 |
Ben Noordhuis |
unix, windows: ANSI-fy uv_tty_reset_mode() prototype |
edd10071 | 06-Jan-2013 |
Ben Noordhuis |
unix: fix up #if defined checks `#if FOO` (where FOO is undefined) is a legal construct in C89 and C99 but gcc, clang and sparse complain loudly about it at higher warning levels.
unix: fix up #if defined checks `#if FOO` (where FOO is undefined) is a legal construct in C89 and C99 but gcc, clang and sparse complain loudly about it at higher warning levels. Squelch those warnings. Makes the code more consistent as well.
show more ...
|
e62dd3ca | 06-Jan-2013 |
Ben Noordhuis |
unix: fix include in cygwin.c |
a2bedc0a | 06-Jan-2013 |
Ben Noordhuis |
unix: make uv__read_start_common() static |
35b159a8 | 06-Jan-2013 |
Ben Noordhuis |
unix: make uv__work_cancel() static |
0a06c2f3 | 06-Jan-2013 |
Ben Noordhuis |
unix: fix up function prototypes in signal.c |
87cbf8d0 | 06-Jan-2013 |
Ben Noordhuis |
unix: remove unused function uv__strlcpy() |
345eb639 | 06-Jan-2013 |
Ben Noordhuis |
unix: add checksparse.sh script |
1f52fc1c | 06-Jan-2013 |
Ben Noordhuis |
test: remove consumer_producer test It fails intermittently on Travis for no other reason than that Travis is occasionally slow. Reduce the number of false positives, remove the test. |
2f553534 | 06-Jan-2013 |
Ben Noordhuis |
unix: update loop->time after poll Fixes a bug where timers expire prematurely when the following conditions hold: a) libuv first spends some time blocked in the platform poll
unix: update loop->time after poll Fixes a bug where timers expire prematurely when the following conditions hold: a) libuv first spends some time blocked in the platform poll function b) a callback then calls uv_timer_start() Cause: uv_timer_start() uses an out-of-date loop->time in its 'when should the timer callback run?' calculations. Solution: Update loop->time before invoking any callbacks. Fixes #678.
show more ...
|
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 ...
|
ba83510f | 02-Jan-2013 |
Fedor Indutny |
stream: fix infinite select() polling on osx Interruption FD buffer should be emptied after write, otherwise select() loop will poll indefinitely. |
775f2c1f | 02-Jan-2013 |
Ben Noordhuis |
unix: remove stale closing check in uv__write() Introduced in 0db3274f but no longer necessary; uv__write() no longer runs when the handle has been closed. Write callbacks receive a spec
unix: remove stale closing check in uv__write() Introduced in 0db3274f but no longer necessary; uv__write() no longer runs when the handle has been closed. Write callbacks receive a special status code that informs them that the handle has been closed.
show more ...
|
a657e7f5 | 02-Jan-2013 |
Ben Noordhuis |
unix: remove uv_write_queue_head() |
0b3ab725 | 02-Jan-2013 |
Ben Noordhuis |
unix: remove bogus uv__write() comment |
546387fc | 28-Dec-2012 |
Ben Noordhuis |
include: add note about SIGRT0 and SIGRT1 on linux |
92a19a19 | 28-Dec-2012 |
Ben Noordhuis |
unix: ensure done_cb gets called after uv_cancel() Wake up the event loop with uv_async_send() when a request is cancelled. Ensures the done_cb is run on the next tick of the event loop.
unix: ensure done_cb gets called after uv_cancel() Wake up the event loop with uv_async_send() when a request is cancelled. Ensures the done_cb is run on the next tick of the event loop. Not sending a wakeup signal results in the done_cb not getting called until another request completes, which may be a long time coming when it's the only request in the queue or when other requests are executing long-running jobs. Fixes #669.
show more ...
|
9614d511 | 27-Dec-2012 |
Saúl Ibarra Corretgé |
unix: reset errno when using sendfile emulation A common way to check if a uv_fs_t request failed is to check that req->errorno != 0. With uv_fs_sendfile(), when the sendfile()
unix: reset errno when using sendfile emulation A common way to check if a uv_fs_t request failed is to check that req->errorno != 0. With uv_fs_sendfile(), when the sendfile() syscall fails, req->errorno is set to (for example) ENOTSOCK, even when the emulation code path succeeds. Zero errno before the call to uv__fs_sendfile_emul() to prevent that from happening.
show more ...
|
69ab328d | 27-Dec-2012 |
Ben Noordhuis |
sunos: fix !defined(PORT_SOURCE_FILE) build |
3164f1ea | 25-Dec-2012 |
Ben Noordhuis |
include: update uv_signal_t doc comments Fixes #668. |
495ac834 | 24-Dec-2012 |
Ben Noordhuis |
build: export _DARWIN_C_SOURCE to dependents Exporting just _POSIX_C_SOURCE=200112 hides SysV / BSD definitions like S_IREAD and S_IWRITE. Exporting _DARWIN_C_SOURCE fixes that.
build: export _DARWIN_C_SOURCE to dependents Exporting just _POSIX_C_SOURCE=200112 hides SysV / BSD definitions like S_IREAD and S_IWRITE. Exporting _DARWIN_C_SOURCE fixes that. Issue reported by Travis Tilley.
show more ...
|
4650a597 | 24-Dec-2012 |
Saúl Ibarra Corretgé |
unix: don't run loop when all handles are unref'd |
33d5c497 | 29-Nov-2012 |
Saúl Ibarra Corretgé |
prepare/idle/check: don't allow NULL callback |
5af43ba4 | 24-Dec-2012 |
Ben Noordhuis |
bench: add 'million async handles' benchmark |
1c722d6c | 24-Dec-2012 |
Ben Noordhuis |
test: make fmt() not leak memory |