summaryrefslogtreecommitdiff
path: root/src/session.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.hpp')
-rw-r--r--src/session.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session.hpp b/src/session.hpp
index 0c5e4f9..d5fb7e6 100644
--- a/src/session.hpp
+++ b/src/session.hpp
@@ -2,7 +2,9 @@
#include "FileDescriptor.hpp"
#include "format.hpp"
+#include <memory>
#include <string>
+#include <thread>
class CSession {
public:
@@ -21,8 +23,10 @@ class CSession {
template <typename... Args>
bool write(eFormatType type, std::format_string<Args...> fmt, Args &&...args) const;
void run();
+ void setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self);
private:
+ std::pair<std::jthread, std::shared_ptr<CSession>> *self;
enum eEventType {
READ,
WRITE