예제 #1
0
        public void SendDeallocatePreparedStatement(uint stmtId)
        {
            var builder = new Deallocate();

            builder.StmtId = stmtId;
            _writer.Write((int)ClientMessages.Types.Type.PrepareDeallocate, builder);
            ReadOk();
        }
예제 #2
0
 /// <summary>
 /// 引用-1, 释放ByteBuf
 /// </summary>
 public void Release()
 {
     ReferenceCount--;
     if (ReferenceCount == 0)
     {
         Recycle();
         Deallocate?.Invoke(this);
     }
 }
예제 #3
0
        private void button1_Click_2(object sender, EventArgs e)                   //OK2
        {
            Drawing(ArrayOfHoles, ArrayOfgaps, true);

            Allocate.Show();
            label_NameOfProcess.Show();
            label_SizeOfProcess.Show();
            textbox_NameOfProcess.Show();
            textbox_SizeOfProcess.Show();
            First_Fit.Show();
            Best_Fit.Show();
            Worst_Fit.Show();
            label_Deallocate.Show();
            textBox_Deallocate.Show();
            Deallocate.Show();
        }