mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
This commit also breaks up req_wrap.h into req-wrap.h and req-wrap-inl.h to work around a circular dependency issue in env.h. PR-URL: https://github.com/iojs/io.js/pull/667 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
31 lines
650 B
C++
31 lines
650 B
C++
#ifndef SRC_REQ_WRAP_H_
|
|
#define SRC_REQ_WRAP_H_
|
|
|
|
#include "async-wrap.h"
|
|
#include "env.h"
|
|
#include "util.h"
|
|
#include "v8.h"
|
|
|
|
namespace node {
|
|
|
|
template <typename T>
|
|
class ReqWrap : public AsyncWrap {
|
|
public:
|
|
inline ReqWrap(Environment* env,
|
|
v8::Handle<v8::Object> object,
|
|
AsyncWrap::ProviderType provider);
|
|
inline ~ReqWrap() override;
|
|
inline void Dispatched(); // Call this after the req has been dispatched.
|
|
|
|
private:
|
|
friend class Environment;
|
|
ListNode<ReqWrap> req_wrap_queue_;
|
|
|
|
public:
|
|
T req_; // Must be last. TODO(bnoordhuis) Make private.
|
|
};
|
|
|
|
} // namespace node
|
|
|
|
#endif // SRC_REQ_WRAP_H_
|