mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
LibGUI: Port threading to LibThread
This commit is contained in:
parent
8d59b10022
commit
7c92f7d537
2 changed files with 56 additions and 54 deletions
|
@ -6,8 +6,6 @@
|
|||
#include <sys/stat.h>
|
||||
|
||||
class GDirectoryModel final : public GModel {
|
||||
friend int thumbnail_thread(void*);
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<GDirectoryModel> create() { return adopt(*new GDirectoryModel); }
|
||||
virtual ~GDirectoryModel() override;
|
||||
|
@ -64,6 +62,7 @@ private:
|
|||
String name_for_uid(uid_t) const;
|
||||
String name_for_gid(gid_t) const;
|
||||
|
||||
bool fetch_thumbnail_for(const Entry& entry);
|
||||
GIcon icon_for(const Entry& entry) const;
|
||||
|
||||
String m_path;
|
||||
|
@ -82,4 +81,7 @@ private:
|
|||
HashMap<gid_t, String> m_group_names;
|
||||
|
||||
OwnPtr<CNotifier> m_notifier;
|
||||
|
||||
unsigned m_thumbnail_progress { 0 };
|
||||
unsigned m_thumbnail_progress_total { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue