ThumbnailManager that does that actual thumbnailing in a separate thread and manages the requests and the results with queues.| Method | __init__ |
Undocumented |
| Method | clear_queue |
Undocumented |
| Method | get_ready_thumbnail |
Check output queue for a thumbnail that is ready @returns: a 5-tuple (file, size, thumbfile, pixbuf, mtime) or 5 times None when nothing is ready and block is False. |
| Method | queue_empty |
Returns True when both input and output queue are empty |
| Method | queue_thumbnail_request |
No summary |
| Method | start |
Undocumented |
| Method | _thread_main |
Undocumented |
| Instance Variable | _count |
Undocumented |
| Instance Variable | _count_lock |
Undocumented |
| Instance Variable | _in_queue |
Undocumented |
| Instance Variable | _out_queue |
Undocumented |
| Instance Variable | _running |
Undocumented |
| Instance Variable | _thread |
Undocumented |
| Instance Variable | _thumbmanager |
Undocumented |
| Returns | |
| a 5-tuple (file, size, thumbfile, pixbuf, mtime) or 5 times None when nothing is ready and block is False. |
| Parameters | |
| file | a File object |
| size | the size of the thumbnail in pixels |
| mtime | the mtime of a previous loaded thumbnail, if this matches the current file, the request will be dropped |