Use a shared queue of X items - One thread adds items at random times - The other thread pulls at random times - They need to synchronize when the queue is full (producer) or empty (consumer)!
mbed-os.lib
- Committer:
- vicara
- Date:
- 2018-11-29
- Revision:
- 1:58c5e61231be
- Parent:
- 0:180517623995
File content as of revision 1:58c5e61231be:
https://github.com/armmbed/mbed-os/#bf6f2c3c6434a6de9eb9511feffa5948b3d1f20f