Allegro 5 api
#include <allegro5/allegro.h> bool al_is_bitmap_locked(ALLEGRO_BITMAP *bitmap)
Returns whether or not a bitmap is already locked.
al_lock_bitmap(3alleg5), al_lock_bitmap_region(3alleg5), al_unlock_bitmap(3alleg5)