Use this function to determine whether a surface must be locked for access.
SDL_bool SDL_MUSTLOCK(SDL_Surface* surface)
surface
the SDL_Surface structure to query
Returns SDL_TRUE if the surface must be locked for access, SDL_FALSE if not.
CategoryAPI, CategorySurface