blob: 9232102c4cc480611f6f7da1976d410191331b67 [file]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVELOPER_DEBUG_DEBUG_AGENT_SUSPEND_HANDLE_H_
#define SRC_DEVELOPER_DEBUG_DEBUG_AGENT_SUSPEND_HANDLE_H_
namespace debug_agent {
// Represents a suspension of a task (thread or process). As long as one of these is alive on a
// task, that task will remain suspended.
class SuspendHandle {
public:
virtual ~SuspendHandle() = default;
protected:
// This is a virtual base class even though it has no members.
SuspendHandle() = default;
};
} // namespace debug_agent
#endif // SRC_DEVELOPER_DEBUG_DEBUG_AGENT_SUSPEND_HANDLE_H_