2023-06-07 08:24:10 -07:00
|
|
|
#include "object/channel.h"
|
|
|
|
|
2023-06-17 01:45:53 -07:00
|
|
|
#include "include/ztypes.h"
|
2023-06-15 16:20:29 -07:00
|
|
|
#include "scheduler/scheduler.h"
|
2023-06-07 08:24:10 -07:00
|
|
|
|
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);
|
2023-06-07 08:24:10 -07:00
|
|
|
c1->SetPeer(c2);
|
|
|
|
c2->SetPeer(c1);
|
|
|
|
return {c1, c2};
|
|
|
|
}
|