What I don't understand is : What if nothing is happening and you want to send data out ? To do this, you need to wake up the thread. In order to do wake it up, how then, can you make the transition from none empty to empty happen from another thread ?
Do you have to wait for flag==IO_OUTPUT_EMPTY to output ?
Serial Problem
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Serial Problem
You can simply start writing from any thread, you don't need to wait an event in order to write.
Giovanni
Giovanni