summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-06-10 08:46:27 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-06-10 21:02:54 -0700
commit156bad78f27813934d897518f0d6ea8748be9e47 (patch)
tree13cb192676645c4ba94aeed4b9577361a16b8271
parentbb8a7ae77660d2e525b1724282a7998a87d3cbf3 (diff)
til_threads: remove vestigial n_fragments counter
This is leftover from 4e5286 which was mostly removed when frame zeroing was simplified, but for some reason this was missed. Just get rid of the count as it's not used.
-rw-r--r--src/til_threads.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/til_threads.c b/src/til_threads.c
index a4d1709..9551814 100644
--- a/src/til_threads.c
+++ b/src/til_threads.c
@@ -45,8 +45,6 @@ static void * thread_func(void *_thread)
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
for (;;) {
- unsigned n_fragments = 0;
-
/* wait for a new frame */
pthread_mutex_lock(&threads->frame_mutex);
pthread_cleanup_push((void (*)(void *))pthread_mutex_unlock, &threads->frame_mutex);
@@ -66,7 +64,6 @@ static void * thread_func(void *_thread)
break;
threads->render_fragment_func(threads->context, threads->ticks, thread->id, &fragment);
- n_fragments++;
}
/* report as idle */
© All Rights Reserved