1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
Commit graph

68 commits

Author SHA1 Message Date
Ryan Dahl
4f4075307d
Fix metrics() race condition. (#965) 2018-10-11 18:22:05 -04:00
Bartek Iwańczuk
51f9331ecb Add deno.metrics() 2018-10-11 15:45:51 -04:00
Ryan Dahl
d26792d926 Clean up Isolate::event_loop with utility function. 2018-10-10 12:18:48 -04:00
Bert Belder
4f3250bc43
Remove deno_get_data()
Instead, pass the isolate data to the dispatch callback directly.
2018-10-08 18:19:36 +02:00
Bert Belder
e742af10aa
Abide by the rules when passing Isolate between c and rust
Ensure that at most one mutable Isolate reference exists at a time.

`deno_execute()` and `deno_respond()` now borrow a reference to the rust-side
isolate from the caller. When we need a reference to the isolate while one of
these functions is on the stack, `deno_get_data()` can be used to borrow back
that reference.
2018-10-08 18:19:32 +02:00
Bert Belder
d86e5d2605
Remove ntasks aliasing workaround 2018-10-08 18:10:28 +02:00
Bert Belder
ad4c4c214a
Rename Deno.data to Deno.user_data
Also use the correct rust type for it.
2018-10-08 18:10:28 +02:00
Bert Belder
14b971c5f7
Rename Isolate.ptr to Isolate.libdeno_isolate 2018-10-08 18:10:27 +02:00
Ryan Dahl
0514f54a22 Make ntasks an atomic counter.
Fixes #919.
2018-10-06 20:24:47 -04:00
Bert Belder
97e08a6fab
isolate: work around a rust compiler bug 2018-10-03 13:27:59 -07:00
Bert Belder
4eeda9ea27
timers: remove the old timer implementation
Fixes #878.
2018-10-03 13:27:59 -07:00
Bert Belder
aa691ea26c
timers: implement timers in javascript 2018-10-03 13:27:55 -07:00
Ryan Dahl
d38ccfc6dc
Support zero-copy data in libdeno.send(). (#838)
This is a large API refactor of deno.h which replaces
deno_send() and deno_set_response() with deno_respond().
It also adds a req_id parameter to the deno_recv_cb.

Make writeFile/writeFileSync use it.
2018-09-27 17:33:10 -04:00
Ryan Dahl
b088b58f76 Add SetGlobalTimeout().
To be used for a timers implementation soon.
2018-09-25 17:02:49 -04:00
Ryan Dahl
4fd2b19f64 Make Deno multithreaded.
By using the tokio default runtime.

This patch makes all of the ops thread safe.

Adds libdeno to JS globals to make for easier testing.

Preliminary work for #733.
2018-09-25 17:02:49 -04:00
ztplz
f3684c28e5 Rename deno.argv, libdeno::DenoC and deno_set_flags (#796) 2018-09-22 08:47:44 -04:00
Ryan Dahl
3c9bb1e799 Isolate::execute doesn't need mutability. 2018-09-17 20:07:53 -07:00
Ryan Dahl
6143a64256 Rename Deno to Isolate and move to own file. 2018-09-17 20:07:53 -07:00