Ben Noordhuis
b9165252e3
src: clean up `using` directives
Remove the unused ones and alphabetically sort the ones that remain.
12 years ago
Ben Noordhuis
448adaa456
src: simplify HandleWrap initialization
12 years ago
Ben Noordhuis
4d68daea0f
src: replace c-style casts with c++-style casts
12 years ago
Timothy J Fontaine
f8193ab3c4
timers: use uv_now instead of Date.now
This saves a few calls to gettimeofday which can be expensive, and
potentially subject to clock drift. Instead use the loop time which
uses hrtime internally.
fixes #5497
12 years ago
Trevor Norris
f65e14ed1d
src: pass Isolate to all applicable api
Update the api to pass node_isolate to all supported methods.
Much thanks to Ben Noordhuis and his work in 51f6e6a
.
12 years ago
Ben Noordhuis
51f6e6a9b3
src, test: downgrade to v8 3.14 api
12 years ago
Ben Noordhuis
6573fc3502
src: pass node_isolate to Integer::New
12 years ago
Timothy J Fontaine
19d43f852e
export HandleWrap Unref Ref in tcp/udp/timer/pipe
13 years ago
Ben Noordhuis
eef57dddf4
core: use proper #include directives
13 years ago
Ben Noordhuis
039fac633e
deps: upgrade libuv to a478847
The event loop's reference counting scheme in this version of libuv has changed.
Update the libuv bindings to reflect that fact.
13 years ago
Oleg Efimov
45de259b43
Make UNWRAP macro generic.
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
13 years ago
Ben Noordhuis
ff4a9d381d
core: use proper #include directives
13 years ago
Ben Noordhuis
74a8215a86
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Ryan Dahl
60818b957c
Add missing copyright headers
13 years ago
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
13 years ago
Ben Noordhuis
87b34c94fa
timer_wrap: add sanity check assert
13 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
Ryan Dahl
85404c5c55
Move HandleWrap rules to one place
14 years ago
Ryan Dahl
0c7bf8132e
Abstract out HandleWrap class
14 years ago
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
14 years ago
Ryan Dahl
f657d58fe1
Upgrade libuv to f9b9bb44bd6e2b74729b5d1ff481adf4213e9a0b
14 years ago
Ryan Dahl
1261b17129
libuv wraps: Dispose of JS object on close()
14 years ago
Ryan Dahl
623f513071
Upgrade libuv
14 years ago
Bert Belder
d9aa9b54cf
Use timer_wrap instead of the old timer binding
14 years ago
Ryan Dahl
7a5977b5d6
Upgrade libuv to e58a1abff02d7bacf89a56de9050e27690a97bc5
14 years ago
Ryan Dahl
650a308634
Move MakeCallback and SetErrno to node.cc
14 years ago
Ryan Dahl
4d22405f0f
TimerWrap: mimic libev ref count semantics
14 years ago
Ryan Dahl
9d1bad8960
Implement new wrap for uv timer
14 years ago