Trees | Indices | Help |
|
---|
|
object --+ | GTK_Main_Hold
Context manager, for use in a Task thread, which pauses the main thread while it is entered.
>>> with task.main_hold: ... read_something_volatile()
Used in combination with throw_in, the exception is sometimes at inconveniently times in __enter__, __call__, or __exit__. This is a possible source of freeze-ups.
In Linux, the Task thread can work with the GUI while the main thread is paused, but this technique is not compatible with the Windows thread model. Not sure about Mac OS X.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
task | |||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
task
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Dec 15 19:07:38 2017 | http://epydoc.sourceforge.net |