bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: endwin() doesn't work in pthread cleanup function


From: Thomas Dickey
Subject: Re: endwin() doesn't work in pthread cleanup function
Date: Fri, 22 Sep 2006 06:01:48 -0400 (EDT)

On Fri, 22 Sep 2006, Mike wrote:

Thanks for your quick response.
Does it means that I couldn't use ncurses API in threads?

You have to treat it like any other non-threadsafe library (wrap calls in mutex's or else only run it in one thread).


Thomas Dickey wrote:
On Thu, 21 Sep 2006, Mike wrote:

The following piece of code can't reset the shell after it terminates. Once endwin is moved to main(), it works.

That's unsurprising, since ncurses isn't threadsafe.




--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]