79803001

Date: 2025-10-28 15:34:00
Score: 3
Natty:
Report link

I am working with a serial port to talk to hardware, from multiple threads. I need a critical section to make sure commands and responses are matched. Some write operations take a long time while I wait for the hardware to respond. Query operations to the hardware are low priority and I don't want them to wait for the long write operation, so TryEnterCriticalSection will be helpful for the queries.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user9236235