Pass opCode around, add Loop::setPostHandler

This commit is contained in:
Alex Hultman
2018-11-04 10:44:11 +01:00
parent 0d09d1db02
commit 894609e638
6 changed files with 20 additions and 5 deletions
+4
View File
@@ -24,6 +24,8 @@
namespace uWS {
struct Loop;
struct LoopData {
friend struct Loop;
private:
@@ -31,6 +33,8 @@ private:
int currentDeferQueue = 0;
std::vector<std::function<void()>> deferQueues[2];
std::function<void(Loop *)> postHandler;
public:
/* Good 16k for SSL perf. */
static const int CORK_BUFFER_SIZE = 16 * 1024;