Hello,
I have two threads in C.
Thread no.1 Parses the stream that is a continuous stream of messages.
Thread no.2 Sends commands to the stream.
The communication takes place on a COM serial port.
When i send a command i send a callback function for that command and parameters for the responses.(in thread 2)
How can I trigger in thread no.1 this callback when i receive a response that matches on of the responses that i have defined in thread 2?
I have two threads in C.
Thread no.1 Parses the stream that is a continuous stream of messages.
Thread no.2 Sends commands to the stream.
The communication takes place on a COM serial port.
When i send a command i send a callback function for that command and parameters for the responses.(in thread 2)
How can I trigger in thread no.1 this callback when i receive a response that matches on of the responses that i have defined in thread 2?
Comment