Hi,
I am writing a driver for a hardware that uses the serial port. I have 1 thread that write to the serial port using WriteFile() and one that reads from it using ReadFile().
Since they are using the same handle to the serial port, I am afraid, they might mess each other's data. Anybody knows if WriteFile and ReadFile have some kind of mutual exclusion or use different streams maybe. Thanks
Amish



LinkBack URL
About LinkBacks



CornedBee
Got some problems related to static functions. Just a note for other people watching this thread. The thread entry point function needs to be static and declared outside of the class declaration in the .h file. I don't know if this is different in different compilers but I am using MSVC++.