seanohalpin / ffi-ncurses

Interface to ncurses using Ruby FFI (Foreign Function Interface)
MIT License
82 stars 21 forks source link

blocking ncurses functions not marked as such with FFI #12

Open robertgrimm opened 10 years ago

robertgrimm commented 10 years ago

Any blocking nurses function should be marked as blocking, with FFI, so they release Ruby's global interpreter lock thus allowing other threads to run. This can be done by adding ":blocking => true" to the appropriate functions defined in FUNCTIONS.

The only function I personally use that should have this is wgetch but there are probably others.