Files
node/src/req-wrap.h
T
Ben Noordhuis 38dc0cd8f4 src: switch from QUEUE to intrusive list
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>
2015-02-11 23:06:29 +01:00

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_