mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-21 19:17:57 +00:00
Kernel: Change WaitObject to Synchronization object. In order to better reflect RE.
This commit is contained in:
parent
a47f0ff68b
commit
3a7f539463
22 changed files with 110 additions and 98 deletions
|
@ -19,7 +19,7 @@ class EmuThread;
|
|||
namespace Kernel {
|
||||
class HandleTable;
|
||||
class ReadableEvent;
|
||||
class WaitObject;
|
||||
class SynchronizationObject;
|
||||
class Thread;
|
||||
} // namespace Kernel
|
||||
|
||||
|
@ -99,35 +99,37 @@ private:
|
|||
const Kernel::Thread& thread;
|
||||
};
|
||||
|
||||
class WaitTreeWaitObject : public WaitTreeExpandableItem {
|
||||
class WaitTreeSynchronizationObject : public WaitTreeExpandableItem {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WaitTreeWaitObject(const Kernel::WaitObject& object);
|
||||
~WaitTreeWaitObject() override;
|
||||
explicit WaitTreeSynchronizationObject(const Kernel::SynchronizationObject& object);
|
||||
~WaitTreeSynchronizationObject() override;
|
||||
|
||||
static std::unique_ptr<WaitTreeWaitObject> make(const Kernel::WaitObject& object);
|
||||
static std::unique_ptr<WaitTreeSynchronizationObject> make(
|
||||
const Kernel::SynchronizationObject& object);
|
||||
QString GetText() const override;
|
||||
std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override;
|
||||
|
||||
protected:
|
||||
const Kernel::WaitObject& object;
|
||||
const Kernel::SynchronizationObject& object;
|
||||
};
|
||||
|
||||
class WaitTreeObjectList : public WaitTreeExpandableItem {
|
||||
Q_OBJECT
|
||||
public:
|
||||
WaitTreeObjectList(const std::vector<std::shared_ptr<Kernel::WaitObject>>& list, bool wait_all);
|
||||
WaitTreeObjectList(const std::vector<std::shared_ptr<Kernel::SynchronizationObject>>& list,
|
||||
bool wait_all);
|
||||
~WaitTreeObjectList() override;
|
||||
|
||||
QString GetText() const override;
|
||||
std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override;
|
||||
|
||||
private:
|
||||
const std::vector<std::shared_ptr<Kernel::WaitObject>>& object_list;
|
||||
const std::vector<std::shared_ptr<Kernel::SynchronizationObject>>& object_list;
|
||||
bool wait_all;
|
||||
};
|
||||
|
||||
class WaitTreeThread : public WaitTreeWaitObject {
|
||||
class WaitTreeThread : public WaitTreeSynchronizationObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WaitTreeThread(const Kernel::Thread& thread);
|
||||
|
@ -138,7 +140,7 @@ public:
|
|||
std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override;
|
||||
};
|
||||
|
||||
class WaitTreeEvent : public WaitTreeWaitObject {
|
||||
class WaitTreeEvent : public WaitTreeSynchronizationObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WaitTreeEvent(const Kernel::ReadableEvent& object);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue