Module simics::api::simulator::callbacks

source ยท
Expand description

Callbacks from the simulator to user code

Functionsยง

  • Context
  • Set a callback whenever a specific IO event occurs on the host on a given file descriptor. If callback is None, the callback is removed.
  • _notify_on_socket ๐Ÿ”’
    Set a callback whenever a specific IO event occurs on the host on a given file descriptor. If callback is None, the callback is removed.
  • process_work and process_pending_work processes work posted by thread_safe_callback and realtime_event. These process work functions are typically called when embedding Simics in another application to allow periodic and asynchronous Simics work to run while the simulation is not advancing. process_pending_work runs all work that has been queued up since the last call and returns immediately after.
  • _process_work ๐Ÿ”’
    process_work and process_pending_work processes work posted by thread_safe_callback and realtime_event. These process work functions are typically called when embedding Simics in another application to allow periodic and asynchronous Simics work to run while the simulation is not advancing. process_pending_work runs all work that has been queued up since the last call and returns immediately after.
  • _realtime_event ๐Ÿ”’
    Context
  • _register_work ๐Ÿ”’
    Register a callback to be run in the simics thread
  • _run_alone ๐Ÿ”’
    Schedule a callback to be run with all execution stopped (global context)
  • _run_in_thread ๐Ÿ”’
    Run a closure in a new thread.
  • Schedule a callback to be run with all execution stopped (global context)
  • Context
  • Set a callback whenever a specific IO event occurs on the host on a given file descriptor. If callback is None, the callback is removed.
  • Set a callback whenever a specific IO event occurs on the host on a given file descriptor. If callback is None, the callback is removed.
  • process_work and process_pending_work processes work posted by thread_safe_callback and realtime_event. These process work functions are typically called when embedding Simics in another application to allow periodic and asynchronous Simics work to run while the simulation is not advancing. process_pending_work runs all work that has been queued up since the last call and returns immediately after.
  • process_work and process_pending_work processes work posted by thread_safe_callback and realtime_event. These process work functions are typically called when embedding Simics in another application to allow periodic and asynchronous Simics work to run while the simulation is not advancing. process_pending_work runs all work that has been queued up since the last call and returns immediately after.
  • Context
  • Register a callback to be run in the simics thread
  • Schedule a callback to be run with all execution stopped (global context)
  • Run a closure in a new thread.
  • Schedule a callback to be run with all execution stopped (global context)

Type Aliasesยง