AsyncPauseState.h 970 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #pragma once
  8. namespace facebook {
  9. namespace hermes {
  10. namespace inspector {
  11. /**
  12. * AsyncPauseState is used to track whether we requested an async pause from a
  13. * running VM, and whether the pause was initiated by us or by the client.
  14. */
  15. enum class AsyncPauseState {
  16. /// None means there is no pending async pause in the VM.
  17. None,
  18. /// Implicit means we requested an async pause from the VM to service an op
  19. /// that can only be performed while paused, like setting a breakpoint. An
  20. /// impliict pause can be upgraded to an explicit pause if the client later
  21. /// explicitly requests a pause.
  22. Implicit,
  23. /// Explicit means that the client requested the pause by calling pause().
  24. Explicit
  25. };
  26. } // namespace inspector
  27. } // namespace hermes
  28. } // namespace facebook