1
Fork 0
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:
Sergey Bugaev 2019-08-25 19:28:48 +03:00 committed by Andreas Kling
parent 8d59b10022
commit 7c92f7d537
2 changed files with 56 additions and 54 deletions

View file

@ -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 };
};