Igor Zinkovsky
52511b9ddc
windows: implement uv_loop_new+uv_loop_delete
2012-01-16 17:07:49 -08:00
Igor Zinkovsky
f5bd21f181
conform to ANSI C
2012-01-16 13:52:45 -08:00
Ben Noordhuis
71f6c0edb8
Merge remote-tracking branch 'origin/v0.6'
...
Conflicts:
src/win/util.c
2012-01-16 18:07:49 +01:00
Fedor Indutny
e7758e126f
unix: remove eio_set_max_poll_reqs
...
* added test
2012-01-16 14:49:13 +01:00
Igor Zinkovsky
26512731e3
remove uv_thread_self
2012-01-13 17:24:30 -08:00
Ben Noordhuis
0e6e4abedc
unix: fix udp recv_start refcount
...
Calling uv_udp_recv_start() should not bump the event loop's reference count.
Fixes failing test udp_ref2.
2012-01-14 01:44:27 +01:00
Ben Noordhuis
6d9c9a533f
Add uv_loop_refcount() function, debug tool.
2012-01-14 00:33:08 +01:00
Ben Noordhuis
ac218a7ed5
test: add lots of refcount tests
2012-01-14 00:22:20 +01:00
Ben Noordhuis
dc3b80a50f
test: add udp4_echo_server helper
2012-01-14 00:11:43 +01:00
Ben Noordhuis
a13584bec7
unix: remove unused #define
2012-01-13 15:59:53 +01:00
Ben Noordhuis
52fba1a38f
unix: fix compiler warning
2012-01-12 16:00:31 +01:00
Igor Zinkovsky
855764406e
windows: improve uv_fs_stat performance (by about 60%)
2012-01-11 19:21:47 -08:00
Igor Zinkovsky
94a5c7b002
fix warnings in windows build
2012-01-11 18:12:51 -08:00
Daisuke Murase
e8494dddc0
unix: use EVRUN_ONCE in uv_run_once()
...
EVRUN_NOWAIT means "poll and don't block". Use EVRUN_ONCE instead, "wait for
single event".
2012-01-11 10:15:25 +01:00
Ryan Dahl
51ea46de45
Merge remote branch 'origin/v0.6'
2012-01-09 11:31:13 -08:00
Ryan Dahl
4ad33e9748
Revert "Add uv_pipe_pair for communication between threads"
...
Not needed. We took a different approach for isolates.
This reverts commit 5cc6090fdf .
2012-01-09 11:22:46 -08:00
Ben Noordhuis
803f5a096e
linux: fix build on older distros
2012-01-09 15:43:00 +01:00
Ben Noordhuis
38fc6ad839
unix: unref fs event watcher
...
Watchers were being ref-counted twice which wasn't harmful in itself but stopped
uv_unref() from working like you'd expect it to.
2012-01-02 10:42:27 +01:00
Igor Zinkovsky
43e3ac5798
windows: uv_fs_rename to replace the new file if it exists
...
fixes #283
2011-12-30 15:48:22 -08:00
Igor Zinkovsky
4d1d02fd18
windows: ensure that uv_fs_event callbacks have long names
2011-12-30 14:59:28 -08:00
Ryan Dahl
5cc6090fdf
Add uv_pipe_pair for communication between threads
...
This is only the Unix implementation and test.
2011-12-29 22:41:08 -08:00
Ryan Dahl
3dd4ecb493
unix: expose uv__make_socketpair, uv__make_pipe in unix/internal.h
2011-12-29 22:37:33 -08:00
Ben Noordhuis
0db56ea41a
windows: implement uv_thread_self()
2011-12-29 01:40:49 +01:00
Ben Noordhuis
85f6b7952b
Fix Windows build, uv_eio_channel is Unix only.
2011-12-28 14:42:46 +01:00
Ben Noordhuis
39481b7896
docs: add c-ares license note
2011-12-22 17:19:22 +01:00
Ben Noordhuis
d6a06b8689
test: eio callbacks should run in their owning threads
2011-12-22 03:42:54 +01:00
Ben Noordhuis
271aa1806c
unix: eio_init() is not thread-safe, run atomically
2011-12-22 03:38:34 +01:00
Ben Noordhuis
ec8c5008aa
Update AUTHORS and .mailmap
2011-12-20 20:47:33 +01:00
Paddy Byers
abf9654a55
unix: create separate eio result queue per loop
...
Makes the eio "done" callback run in the thread that submitted it. Makes it safe
to use libeio from multiple event loops.
2011-12-20 20:47:33 +01:00
Ben Noordhuis
10de090b9e
unix: centralize loop init logic
...
Also fixes a bug where loops other than the main loop didn't pick the kqueue
backend, which broke the fs event watcher on Darwin and the BSDs.
2011-12-20 20:47:33 +01:00
Ben Noordhuis
6a9cb902ae
Add ngx_queue_foreach() macro.
2011-12-20 20:47:33 +01:00
Ben Noordhuis
69ce0145f6
Wrap platform "thread-safe run once" APIs.
2011-12-20 20:34:55 +01:00
Ryan Dahl
a993329c02
add uv_thread_self
2011-12-20 11:34:18 -08:00
Daisuke Murase
3cbe7c3f79
Fixes for iOS
...
replace AbsoluteToNanoseconds to alternate implementation in uv_hrtime when
target OS is iOS which does not have CoreServices.framework
Fixes #243
2011-12-20 11:07:11 -08:00
Ben Noordhuis
feb267e611
unix: it's legal for dlsym() to return NULL
...
A symbol name can map to NULL. Check dlerror() to see if a real error happened.
2011-12-18 16:49:40 +01:00
Ben Noordhuis
e9235a39f8
unix: the dl functions don't set errno
2011-12-18 16:47:06 +01:00
Ben Noordhuis
cb70db1240
linux: fix compiler warnings
2011-12-16 20:39:35 +01:00
Ben Noordhuis
f9edaca5bd
Merge branch 'v0.6'
...
Conflicts:
src/unix/linux.c
2011-12-16 20:14:16 +01:00
Ben Noordhuis
d808cf9023
linux: detect if inotify syscalls are supported
2011-12-16 15:50:27 +01:00
Ben Noordhuis
6b3075cd73
linux: improve kernel feature detection
...
Do not check for minimum kernel and glibc versions, just check that the kernel
headers export the syscall number and invoke the syscall directly. Effectively
bypasses glibc.
2011-12-16 15:16:31 +01:00
okuoku
8e50b6043d
freebsd: Fix build
...
Fixes #280
2011-12-15 15:48:02 -08:00
okuoku
9775121581
win: Fix MinGW32 builds
...
Fixes #279 .
2011-12-15 15:47:14 -08:00
Igor Zinkovsky
7aacfad447
windows: support for getting multiple addresses for a network interface
2011-12-14 22:56:53 -08:00
Igor Zinkovsky
3d189de699
platform api
2011-12-14 17:50:36 -08:00
Ben Noordhuis
12cc4f7d3d
Update AUTHORS and .mailmap
2011-12-14 14:32:13 +01:00
mattn
e53cecb8c0
add uv_run_once()
2011-12-14 14:28:35 +01:00
Igor Zinkovsky
a4c8ffa3c2
windows: correctly check the result of malloc
2011-12-12 19:10:11 -08:00
Igor Zinkovsky
4e99cd4e29
windows: fix memory leak when non-zero tcp reads are used
2011-12-12 12:30:12 -08:00
Ben Noordhuis
4c6008f488
Merge branch 'v0.6'
...
Conflicts:
test/test-list.h
2011-12-12 18:04:17 +01:00
Shigeki Ohtsu
ba52023ef3
Fix missing increments of loop->counters
2011-12-12 18:01:26 +01:00