I am developing a serial communication utility in VC++, which is Windows console application.
I am creating a communication port in main thread. And I use com port handle in main thread and in another thread spawned by main thread.
Do I really need to synchronise com port access in both threads by mutex? What is side effect, if I do not synchronise com port access, in thread spanwned by main thread?
Please let me know.