From 2973df584978d9aae6f164ce0204179c8a28b3ae Mon Sep 17 00:00:00 2001 From: 2lag <96544487+2lag@users.noreply.github.com> Date: Sat, 8 Aug 2026 17:33:36 +0200 Subject: console, textbox changes, some other shit --- src/util/thread.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/util/thread.h') diff --git a/src/util/thread.h b/src/util/thread.h index 72ef5fb..b46ade0 100644 --- a/src/util/thread.h +++ b/src/util/thread.h @@ -544,13 +544,13 @@ get the count, it might have changed by another thread calling consume or produc union thread_mutex_t { void* align; - char data[ 64 ]; + char data[64]; }; union thread_signal_t { void* align; - char data[ 116 ]; + char data[116]; }; union thread_atomic_int_t @@ -567,7 +567,7 @@ union thread_atomic_ptr_t union thread_timer_t { void* data; - char d[ 8 ]; + char d[8]; }; struct thread_queue_t @@ -1418,7 +1418,7 @@ int thread_queue_produce( thread_queue_t* queue, void* value, int timeout_ms ) return 0; } int tail = thread_atomic_int_inc( &queue->tail ); - queue->values[ tail % queue->size ] = value; + queue->values[tail % queue->size] = value; if( thread_atomic_int_inc( &queue->count ) == 0 ) thread_signal_raise( &queue->data_ready ); return 1; @@ -1439,7 +1439,7 @@ void* thread_queue_consume( thread_queue_t* queue, int timeout_ms ) return NULL; } int head = thread_atomic_int_inc( &queue->head ); - void* retval = queue->values[ head % queue->size ]; + void* retval = queue->values[head % queue->size]; if( thread_atomic_int_dec( &queue->count ) == queue->size ) thread_signal_raise( &queue->space_open ); return retval; -- cgit v1.2.3