[Top][All Lists]

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

Is def_prog_mode() thread-safe?

From: Katarina Machalkova
Subject: Is def_prog_mode() thread-safe?
Date: Tue, 17 Jul 2007 21:29:08 +0200
User-agent: KMail/1.9.1

Hola ncurses-hackers

I'd like have multithread support in my ncurses application. In other words, 
one UI thread, that moves keyboard focus around, redraws windows and does 
other boring stuff, and the other thread, that does all the calculations.

However, in some point, I need to temporarily leave ncurses mode and run 
another application in the same terminal. For this purpose, I use 
def_prog_mode() and endwin() call. To resume my app back, reset_prog_mode() 
and refresh() are used

My q. is: does def_prog_mode() take care of suspending properly multiple 
threads, or does my application need to take care of this thread magic 
itself? And similarly, is reset_prog_mode() able to resume multiple threads?

   \\\\\              Katarina Machalkova    
  \\\\\\\__o          YaST developer
__\\\\\\\'/_          & hedgehog painter

reply via email to

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