Jump to content

term API, threads and efficiency -> term_response

java api

2 replies to this topic

#1 CoolisTheName007

  • Members
  • 304 posts

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 ?

#2 Cloudy


  • Members
  • 2,543 posts

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?

#3 CoolisTheName007

  • Members
  • 304 posts

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.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users