Updated GB_run (markdown)

Lior Halphon 2024-11-24 23:22:15 +02:00
parent 2b4e32e3ea
commit d7bf8aeab6
1 changed files with 5 additions and 1 deletions

@ -6,8 +6,12 @@ In `gb.h`
## Description ## Description
TBD Runs an emulator instance for an atomic amount of time (usually a single instruction). Returns the number of time passed, in units of 8MHz (8,388,608Hz) ticks. If SameBoy was not compiled with time keeping disabled, and [[turbo mode|GB_set_turbo_mode]] was not enabled, this function can potentially sleep before returning to keep a correct frame rate.
## Thread Safety ## Thread Safety
`GB_run` must not be called if the instance is being run in any thread, including the current one (via a callback). `GB_run` must not be called if the instance is being run in any thread, including the current one (via a callback).
## See Also
* [[GB_run_frame]]
* [[GB_set_turbo_mode]]