lc-3-2 / lc32sim

LC-3.2 simulator
0 stars 0 forks source link

Add `InputQueue` Class for Polling STDIN #42

Closed ammrat13 closed 1 year ago

ammrat13 commented 1 year ago

Closes #40

sameer-s commented 1 year ago

Can we add a destructor for InputQueue? Those resources should be cleaned up when the owning Simulator exits.

ammrat13 commented 1 year ago

This solution doesn't have an easy way to kill the thread, which will lead to panics. I need to come up with something else. It'll probably involve using the file descriptor directly.