remove fb_lock/unlock

The two functions have been removed from the external header file.
Remove them and the now unnecessary field is_locked.
pull/32/head
Stefan Agner 2020-05-18 01:44:35 +02:00 committed by Andri Yngvason
parent afbeae8410
commit a37eed4a4a
2 changed files with 0 additions and 14 deletions

View File

@ -25,7 +25,6 @@
struct nvnc_fb {
int ref;
void* addr;
atomic_bool is_locked;
enum nvnc_fb_flags flags;
size_t size;
uint16_t width;

View File

@ -56,19 +56,6 @@ struct nvnc_fb* nvnc_fb_new(uint16_t width, uint16_t height,
return fb;
}
EXPORT
bool nvnc_fb_lock(struct nvnc_fb* fb)
{
bool expected = false;
return atomic_compare_exchange_strong(&fb->is_locked, &expected, true);
}
EXPORT
void nvnc_fb_unlock(struct nvnc_fb* fb)
{
fb->is_locked = false;
}
EXPORT
enum nvnc_fb_flags nvnc_fb_get_flags(const struct nvnc_fb* fb)
{