Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59884
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Is curses module thread-safe? |
| Date | 2013-11-18 16:38 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <l6dfpe$kh3$1@reader1.panix.com> (permalink) |
I'm working on a program that uses the curses module, and I'd like to
use multiple threads (using the threading module). Is the curses module
in the standard library usable from multile threads?
I found a discussion from about 15 years ago that indicated it wasn't
at that time. The example being discussed was that when one thread
calls a blocking getch(), the GIL isn't released and wall threads stop.
The suggesting work-around was to wrap the call to getch() with a
select() on sys.stdin. Is that still an issue?
If two threads call addstr() "simultaneously" is it handled properly?
Or do all curses calls need to be made by a single thread?
--
Grant Edwards grant.b.edwards Yow! It don't mean a
at THING if you ain't got
gmail.com that SWING!!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Is curses module thread-safe? Grant Edwards <invalid@invalid.invalid> - 2013-11-18 16:38 +0000
csiph-web