Clapper.ThreadedObject¶
- Subclasses:
 
Methods¶
- Inherited:
 - Structs:
 
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class Clapper.ThreadedObject(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A base class for creating objects that work within a separate thread.
- get_context()¶
 - Returns:
 a
GLib.MainContextof the object used thread.- Return type:
 
Get the
GLib.MainContextof the thread used by this object.Useful when you want to invoke object thread to do some action in it from a different thread.
- do_thread_start() virtual¶
 Called right after thread started.
Useful for initializing objects that work within this new thread.
- do_thread_stop() virtual¶
 Called when thread is going to stop.
Useful for cleanup of things created on thread start.