mirror of
https://github.com/wassname/ray.git
synced 2026-07-21 12:50:45 +08:00
Fix compilation on macOS by adding virtual destructors (#3878)
This commit is contained in:
committed by
Robert Nishihara
parent
f7415b37c5
commit
0aadf11c10
@@ -49,6 +49,9 @@ enum class TaskState {
|
||||
|
||||
class TaskQueue {
|
||||
public:
|
||||
/// TaskQueue destructor.
|
||||
virtual ~TaskQueue() {}
|
||||
|
||||
/// \brief Append a task to queue.
|
||||
///
|
||||
/// \param task_id The task ID for the task to append.
|
||||
@@ -103,6 +106,9 @@ class ReadyQueue : public TaskQueue {
|
||||
|
||||
ReadyQueue(const ReadyQueue &other) = delete;
|
||||
|
||||
/// ReadyQueue destructor.
|
||||
virtual ~ReadyQueue() {}
|
||||
|
||||
/// \brief Append a task to queue.
|
||||
///
|
||||
/// \param task_id The task ID for the task to append.
|
||||
|
||||
Reference in New Issue
Block a user