summaryrefslogtreecommitdiff
path: root/src/thread/thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/thread.rs')
-rw-r--r--src/thread/thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/thread.rs b/src/thread/thread.rs
index d13c271..75e7ab6 100644
--- a/src/thread/thread.rs
+++ b/src/thread/thread.rs
@@ -9,9 +9,9 @@ pub struct ThreadContex {
}
impl ThreadContex {
- pub fn new() -> Self {
+ pub fn new(event_mgr: Rc<RefCell<EventManager>>) -> Self {
ThreadContex {
- event_mgr: Rc::new(RefCell::new(EventManager::new())),
+ event_mgr,
session_mgr: Rc::new(RefCell::new(SessionManager::new(4096))),
}
}