コード例 #1
0
ファイル: OktoQueue.cs プロジェクト: sibaoli/Moirai
 /// <summary>
 /// Creates an instance of the OktoQueue class.
 /// </summary>
 /// <param name="flowId">FlowId uniqueue within this tenant.</param>
 /// <param name="conn">Connection for comms with the remote network agent.</param>
 internal OktoQueue(uint flowId, Connection conn)
 {
     this.flowId       = flowId;
     this.conn         = conn;
     vecLen            = 1;
     TokSecVec[0]      = ulong.MaxValue;
     bucketCapacity[0] = ulong.MaxValue;
     listRap           = new List <RAP>();
     conn.ListQueues.Add(this);
     costFuncVecRead  = new CostFuncVec();
     costFuncVecWrite = new CostFuncVec();
 }
コード例 #2
0
ファイル: OktoQueue.cs プロジェクト: ioan-stefanovici/Moirai
 /// <summary>
 /// Creates an instance of the OktoQueue class.
 /// </summary>
 /// <param name="flowId">FlowId uniqueue within this tenant.</param>
 /// <param name="conn">Connection for comms with the remote network agent.</param>
 internal OktoQueue(uint flowId, Connection conn)
 {
     this.flowId = flowId;
     this.conn = conn;
     vecLen = 1;
     TokSecVec[0] = ulong.MaxValue;
     bucketCapacity[0] = ulong.MaxValue;
     listRap = new List<RAP>();
     conn.ListQueues.Add(this);
     costFuncVecRead = new CostFuncVec();
     costFuncVecWrite = new CostFuncVec();
 }