AHardwareBuffer_unlock

Unlock the AHardwareBuffer; must be called after all changes to the buffer are completed by the caller. If fence is not NULL then it will be set to a file descriptor that is signaled when all pending work on the buffer is completed. The caller is responsible for closing the fence when it is no longer needed.

\return 0 on success, -EINVAL if \a buffer is NULL, or an error number if the unlock fails for any reason.

version(Android)
extern (C) @system nothrow @nogc
int
AHardwareBuffer_unlock

Meta