Kevin Chen

Results 9 comments of Kevin Chen

I think since Arc lock is scope lock, you could try this in your thread: ```rust let mut port = serial::open("COM6") .expect("Error opening serial port"); // do your configuration and...

> 1. Is having multiple handles to the same device thread-safe? I assume this should be safe, since Windows provides a DuplicateHandle function. I'm just trying to come up with...

@dcuddeback okay, dumb question, and off topic, but how do I get the diff from the link you gave me to apply to the git fork I just made? dumb...

@dcuddeback All good and built as per your instructions. Thank you so much. Your instructions were really clear and it was really easy to follow from there. > Does the...

@dcuddeback So after reviewing the MSDN documentation I'm pretty confident that it is thread safe, even though it is not explicitly mentioned. This is because of the example it gave....

My plan for testing thread safety for writing to the handle ``` // The communication will be between COM5 and COM6 // // This code will first open COM5 and...

@dcuddeback Okay so the above test passed. Now I have these two tests, what's the best way to keep it for future use so someone else doesn't have to repeat...

Hi @dcuddeback Sorry for the late reply. Got busy lately. https://gist.github.com/lowlifer/7c7628106308356f7766ce2fc58a44e2 Please see the gist with my test code.

Any updates on this issue? This is preventing me from using VirtioFS for some of the work I had to do where I need to use tar files. The script...