summaryrefslogtreecommitdiff
path: root/src/req_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-06-04 12:21:58 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-06-04 12:22:03 +0200
commita7820a15e7eb4e57a4fe2f076e877dcc6069358c (patch)
tree47e6ba0c43a76064642415944ec981b8194bfa2e /src/req_wrap.h
parent72b92e92d39fa8c513d4166c1f0feed48241aac7 (diff)
downloadandroid-node-v8-a7820a15e7eb4e57a4fe2f076e877dcc6069358c.tar.gz
android-node-v8-a7820a15e7eb4e57a4fe2f076e877dcc6069358c.tar.bz2
android-node-v8-a7820a15e7eb4e57a4fe2f076e877dcc6069358c.zip
src: replace ngx-queue.h with queue.h
No functional changes, just one less entry in the LICENSE file.
Diffstat (limited to 'src/req_wrap.h')
-rw-r--r--src/req_wrap.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/req_wrap.h b/src/req_wrap.h
index 587111b415..60e4184d56 100644
--- a/src/req_wrap.h
+++ b/src/req_wrap.h
@@ -22,7 +22,7 @@
#ifndef REQ_WRAP_H_
#define REQ_WRAP_H_
-#include "ngx-queue.h"
+#include "queue.h"
#include "node_internals.h"
namespace node {
@@ -30,7 +30,7 @@ namespace node {
// defined in node.cc
extern v8::Persistent<v8::String> process_symbol;
extern v8::Persistent<v8::String> domain_symbol;
-extern ngx_queue_t req_wrap_queue;
+extern QUEUE req_wrap_queue;
template <typename T>
class ReqWrap {
@@ -51,12 +51,12 @@ class ReqWrap {
}
}
- ngx_queue_insert_tail(&req_wrap_queue, &req_wrap_queue_);
+ QUEUE_INSERT_TAIL(&req_wrap_queue, &req_wrap_queue_);
}
~ReqWrap() {
- ngx_queue_remove(&req_wrap_queue_);
+ QUEUE_REMOVE(&req_wrap_queue_);
// Assert that someone has called Dispatched()
assert(req_.data == this);
assert(!object_.IsEmpty());
@@ -70,7 +70,7 @@ class ReqWrap {
}
v8::Persistent<v8::Object> object_;
- ngx_queue_t req_wrap_queue_;
+ QUEUE req_wrap_queue_;
void* data_;
T req_; // *must* be last, GetActiveRequests() in node.cc depends on it
};