async fn read_record_no_tid(&self, expected_tid: u64) -> Result<TestRecord, Error> {
        loop {
            let mut buf: Vec<u8> = vec![];
            let bytes_read = self.socket.read_datagram(&mut buf).await.unwrap();
            if bytes_read == 0 {
                continue;
            }
            let mut record = TestRecord::parse(&buf[0..bytes_read], self.new_file_line_rules)?;
            record.arguments.remove("tid");
            record.arguments.insert("tid".to_string(), Value::UnsignedInt(expected_tid));
            return Ok(record);
        }
    }
// For the CPP puppet it's necessary to strip out the TID from the comparison
// as interest events happen outside the main thread due to HLCPP.
For the CPP puppet it's necessary to strip out the TID from the comparison
as interest events happen outside the main thread due to HLCPP.
For the CPP puppet it ' s necessary to strip out the TID from the comparison as interest events happen outside the main thread due to HLCPP .
async fn read_record_no_tid(&self, expected_tid: u64) -> Result<TestRecord, Error> {
        loop {
            let mut buf: Vec<u8> = vec![];
            let bytes_read = self.socket.read_datagram(&mut buf).await.unwrap();
            if bytes_read == 0 {
                continue;
            }
            let mut record = TestRecord::parse(&buf[0..bytes_read], self.new_file_line_rules)?;
            record.arguments.remove("tid");
            record.arguments.insert("tid".to_string(), Value::UnsignedInt(expected_tid));
            return Ok(record);
        }
    }
async fn read_record_no_tid ( & self , expected_tid : u64 ) -> Result < TestRecord , Error > { loop { let mut buf : Vec < u8 > = vec ! [ ] ; let bytes_read = self . socket . read_datagram ( & mut buf ) . await . unwrap ( ) ; if bytes_read == 0 { continue ; } let mut record = TestRecord :: parse ( & buf [ 0 .. bytes_read ] , self . new_file_line_rules ) ? ; record . arguments . remove ( " " ) ; record . arguments . insert ( " " . to_string ( ) , Value :: UnsignedInt ( expected_tid ) ) ; return Ok ( record ) ; } }
For the CPP puppet it's necessary to strip out the TID from the comparison
as interest events happen outside the main thread due to HLCPP.
For the CPP puppet it ' s necessary to strip out the TID from the comparison as interest events happen outside the main thread due to HLCPP .
&self
expected_tid
u64
&self
expected_tid
u64