KallistiOS
##version##
|
VBlank handler registration. More...
Go to the source code of this file.
Functions | |
int | vblank_handler_add (asic_evt_handler hnd) |
Add a vblank handler. More... | |
int | vblank_handler_remove (int handle) |
Remove a vblank handler. More... | |
VBlank handler registration.
This file allows functions to be registered to be called on each vblank interrupt that occurs. This gives a way to schedule small functions that must occur regularly, without using threads.
int vblank_handler_add | ( | asic_evt_handler | hnd | ) |
Add a vblank handler.
This function adds a handler to the vblank handler list. The function will be called at the start of every vblank period with the same parameters that were passed to the IRQ handler for vblanks.
hnd | The handler to add. |
int vblank_handler_remove | ( | int | handle | ) |
Remove a vblank handler.
This function removes the specified handler from the vblank handler list.
handle | The handle id to remove (returned by vblank_handler_add() when the handler was added). |
0 | On success. |
-1 | On failure. |