acadia/zion/object/channel.cpp

14 lines
320 B
C++
Raw Normal View History

#include "object/channel.h"
#include "include/ztypes.h"
2023-06-15 16:20:29 -07:00
#include "scheduler/scheduler.h"
2023-06-21 20:47:40 -07:00
glcr::Pair<glcr::RefPtr<Channel>, glcr::RefPtr<Channel>>
2023-06-21 15:07:40 -07:00
Channel::CreateChannelPair() {
2023-06-21 23:42:21 -07:00
auto c1 = glcr::AdoptPtr(new Channel);
auto c2 = glcr::AdoptPtr(new Channel);
c1->SetPeer(c2);
c2->SetPeer(c1);
return {c1, c2};
}