This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CoolisTheName007's profile picture

term API, threads and efficiency -> term_response

Started by CoolisTheName007, 03 January 2013 - 07:11 AM
CoolisTheName007 #1
Posted 03 January 2013 - 08:11 AM
I heard that monitors aren't thread safe, yet; if they ever do, do you think that between making a request to the term API, and getting back a term_response event, one could run enough Lua code to significatively improve the efficiency of, for instance, drawing to screen a line, and saving to a 2D buffer the new state of the terminal ?
Cloudy #2
Posted 03 January 2013 - 12:01 PM
Monitors are thread safe apart from attach and detach - and I've taken steps to make them more safe. Using the functions for writing text, they're perfectly thread safe. Who keeps stating that they're not thread safe, and blowing it out of proportion?
CoolisTheName007 #3
Posted 03 January 2013 - 12:29 PM
Ok, this was handled on IRC, apparently monitors have no issues of use to the OP. Case closed.