Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
src: use async_context instead of custom struct
  • Loading branch information
addaleax committed Dec 20, 2017
commit d84f16eba76bf256754fd0d42dba2490496e68f2
7 changes: 1 addition & 6 deletions src/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,6 @@ class ModuleWrap;

class Environment;

struct node_async_ids {
double async_id;
double trigger_async_id;
};

class IsolateData {
public:
IsolateData(v8::Isolate* isolate, uv_loop_t* event_loop,
Expand Down Expand Up @@ -424,7 +419,7 @@ class Environment {
// Used by provider_string().
v8::Isolate* isolate_;
// Stores the ids of the current execution context stack.
std::stack<struct node_async_ids> async_ids_stack_;
std::stack<async_context> async_ids_stack_;
// Attached to a Uint32Array that tracks the number of active hooks for
// each type.
AliasedBuffer<uint32_t, v8::Uint32Array> fields_;
Expand Down