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
parent
afbeae8410
commit
a37eed4a4a
|
@ -25,7 +25,6 @@
|
||||||
struct nvnc_fb {
|
struct nvnc_fb {
|
||||||
int ref;
|
int ref;
|
||||||
void* addr;
|
void* addr;
|
||||||
atomic_bool is_locked;
|
|
||||||
enum nvnc_fb_flags flags;
|
enum nvnc_fb_flags flags;
|
||||||
size_t size;
|
size_t size;
|
||||||
uint16_t width;
|
uint16_t width;
|
||||||
|
|
13
src/fb.c
13
src/fb.c
|
@ -56,19 +56,6 @@ struct nvnc_fb* nvnc_fb_new(uint16_t width, uint16_t height,
|
||||||
return fb;
|
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
|
EXPORT
|
||||||
enum nvnc_fb_flags nvnc_fb_get_flags(const struct nvnc_fb* fb)
|
enum nvnc_fb_flags nvnc_fb_get_flags(const struct nvnc_fb* fb)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue