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
isNone
, the callback is removed. - _notify_
on_ ๐socket Set a callback whenever a specific IO event occurs on the host on a given file descriptor. Ifcallback
isNone
, 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
- handle_
work_ ๐callback - Set a callback whenever a specific IO event occurs on the host on a given file descriptor. If
callback
isNone
, the callback is removed. - Set a callback whenever a specific IO event occurs on the host on a given file descriptor. If
callback
isNone
, 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ยง
- Alias for
notify_mode_t
- Alias for
socket_t