History log of /libuv/ (Results 3426 – 3450 of 5435)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
a2bedc0a06-Jan-2013 Ben Noordhuis

unix: make uv__read_start_common() static

35b159a806-Jan-2013 Ben Noordhuis

unix: make uv__work_cancel() static

0a06c2f306-Jan-2013 Ben Noordhuis

unix: fix up function prototypes in signal.c

87cbf8d006-Jan-2013 Ben Noordhuis

unix: remove unused function uv__strlcpy()

345eb63906-Jan-2013 Ben Noordhuis

unix: add checksparse.sh script

1f52fc1c06-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.

2f55353406-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 ...

339033af06-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 ...

ba83510f02-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.

775f2c1f02-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 ...

a657e7f502-Jan-2013 Ben Noordhuis

unix: remove uv_write_queue_head()

0b3ab72502-Jan-2013 Ben Noordhuis

unix: remove bogus uv__write() comment

546387fc28-Dec-2012 Ben Noordhuis

include: add note about SIGRT0 and SIGRT1 on linux

92a19a1928-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 ...

9614d51127-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 ...

69ab328d27-Dec-2012 Ben Noordhuis

sunos: fix !defined(PORT_SOURCE_FILE) build

3164f1ea25-Dec-2012 Ben Noordhuis

include: update uv_signal_t doc comments

Fixes #668.

495ac83424-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 ...

4650a59724-Dec-2012 Saúl Ibarra Corretgé

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

33d5c49729-Nov-2012 Saúl Ibarra Corretgé

prepare/idle/check: don't allow NULL callback

5af43ba424-Dec-2012 Ben Noordhuis

bench: add 'million async handles' benchmark

1c722d6c24-Dec-2012 Ben Noordhuis

test: make fmt() not leak memory

4b115f8918-Dec-2012 Vlad Tudose

build: build libuv.a and libuv.so in different dirs

Fixes #659.

6fb3149319-Dec-2012 Ben Noordhuis

build: export _POSIX_C_SOURCE=200112 to dependents

Fix direct_dependent_settings to export _POSIX_C_SOURCE=200112 to dependent
projects. Required to make pthread_rwlock_t and pthread_bar

build: export _POSIX_C_SOURCE=200112 to dependents

Fix direct_dependent_settings to export _POSIX_C_SOURCE=200112 to dependent
projects. Required to make pthread_rwlock_t and pthread_barrier_t visible.

show more ...

0820be7018-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 ...

1...<<131132133134135136137138139140>>...218