Beispiel #1
0
        public static WriteTask New(Ukcp kcp)
        {
            WriteTask recieveTask = RECYCLER.Take();

            recieveTask.kcp = kcp;
            return(recieveTask);
        }
Beispiel #2
0
 protected internal void notifyWriteEvent()
 {
     if (_writeProcessing.CompareAndSet(false, true))
     {
         var writeTask = WriteTask.New(this);
         _iMessageExecutor.execute(writeTask);
     }
 }