예제 #1
0
func (mng *CoreWorkerManager) AppendBackChannel(
	connData *connectionsupport.ConnectionData,
	backChannel *chan coreprocessing.CoreInstruction) {
	//
	index := connData.GetResourceIndex()
	if mng.outChannels[index] == nil {
		mng.outChannels[index] = newOutChannelGroup()
	}
	mng.outChannels[index].Append(connData.GetId(), backChannel)
}
예제 #2
0
func (mng *CoreWorkerManager) RemoveBackChannel(connData *connectionsupport.ConnectionData) {
	index := connData.GetResourceIndex()
	if mng.outChannels[index] != nil {
		mng.outChannels[index].Remove(connData.GetId())
	}
}