|
|
@ -1181,11 +1181,12 @@ mutex_unlock(void* vlock){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int notcurses_render(notcurses* nc){
|
|
|
|
int notcurses_render(notcurses* nc){
|
|
|
|
int ret = 0;
|
|
|
|
int ret;
|
|
|
|
struct timespec start, done;
|
|
|
|
struct timespec start, done;
|
|
|
|
clock_gettime(CLOCK_MONOTONIC_RAW, &start);
|
|
|
|
clock_gettime(CLOCK_MONOTONIC_RAW, &start);
|
|
|
|
pthread_mutex_lock(&nc->lock);
|
|
|
|
pthread_mutex_lock(&nc->lock);
|
|
|
|
pthread_cleanup_push(mutex_unlock, &nc->lock);
|
|
|
|
pthread_cleanup_push(mutex_unlock, &nc->lock);
|
|
|
|
|
|
|
|
ret = 0;
|
|
|
|
int bytes = notcurses_render_internal(nc);
|
|
|
|
int bytes = notcurses_render_internal(nc);
|
|
|
|
int dimy, dimx;
|
|
|
|
int dimy, dimx;
|
|
|
|
notcurses_resize(nc, &dimy, &dimx);
|
|
|
|
notcurses_resize(nc, &dimy, &dimx);
|
|
|
|